Skip to content

Conversation

@omartin2010
Copy link
Contributor

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.

@omartin2010 omartin2010 force-pushed the zerofix branch 3 times, most recently from 1c769af to 6ed3d50 Compare June 9, 2025 17:49
omartin2010 added a commit to omartin2010/cni-plugins-daemonset that referenced this pull request Jun 9, 2025
omartin2010 added a commit to omartin2010/cni-plugins-daemonset that referenced this pull request Jun 25, 2025
Copy link
Member

@squeed squeed left a 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!

@omartin2010
Copy link
Contributor Author

Done - lmk if this is helpful.

Copy link
Member

@squeed squeed left a 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]>
@omartin2010
Copy link
Contributor Author

omartin2010 commented Aug 20, 2025

I think we should be good now!

@omartin2010 omartin2010 requested a review from squeed August 21, 2025 02:01
@squeed squeed merged commit d3e8172 into containernetworking:main Aug 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants