-
Notifications
You must be signed in to change notification settings - Fork 837
Set value of gw to nil for opt121 routes in DHCP #1187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1c769af to
6ed3d50
Compare
squeed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cute, more fun corners of the DHCP spec.
Can you please squash to a single commit, then force-push? Thanks!
|
Done - lmk if this is helpful. |
squeed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rebase and force-push? The PR should have exactly one commit.
…ified with DHCP
Default behavior of the plugin is to try and install routes without
specifying SCOPE which results in not installing certain routes that
do not have a gateway set in the DHCP server response. If the SCOPE is
not set to LINK (in particular for NICs in some cloud environment
that get assigned /32 IPs to them). This change enables routes to be
installed without the router being specified, but sets to SCOPE_LINK.
Signed-off-by: Olivier Martin <[email protected]>
|
I think we should be good now! |
Default behavior of the plugin is to try and install routes without using SRC which prevents routes from being installed in the routing table in (some) cloud environment that assign /32 IPs to NICs. This change enables routes to be installed without this value (and making the scope to be set to SCOPE_LINK. Another way of fixing it would be if the plugin would be refactored to use the SRC object of the struct in github.com/vishvananda/netlink which would require more work and potentially impact other plugins.