azure-container-networking
azure-container-networking copied to clipboard
feat: query host to check if dhcp rehydration feature is enabled before issuing dhcp request
Reason for Change:
There is a temporary workaround in swiftv2 linux which requires the cni to send a dhcp request when adding secondary nics. A more permanent fix is available, but once that is merged in, cni will still attempt to send the dhcp request and will fail perpetually. This PR adds a check to see if the dhcp rehydration feature (the more permanent fix) is enabled on the host before sending the dhcp request.
Issue Fixed:
See above
Requirements:
- [X] uses conventional commit messages
- [ ] includes documentation
- [ ] adds unit tests
- [X] relevant PR labels added
Notes: Only affects swiftv2 linux setups with delegated nics