-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bgpd: do not accept a host route that matches a local address #17976
base: master
Are you sure you want to change the base?
Conversation
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.
A test please.
It's covered by topotest/bgp_l3vpn_to_bgp_direct (with the adjustment). Is that ok? |
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.
LGTM
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.
looks good
waiting on freeze |
One thing that concerns me is that there is no recovery mechanism in place for when the host interface is removed and all of a sudden we have no route to the host anymore in the bgp rib. |
Also, how does it work if running a route-server mode (= transparent)? We should relax this also? |
The same issue exists with bgp_nexthop_self() check. Not sure how much we want to do in the code for auto recovery from such a misconfig, i.e., one address assigned to multiple devices. |
It's the same, isn't? If the RS accepts a host route for its own address, the host route may be advertised with a third-party nexthop. That would not be correct. |
Accepting a host route from a BGP peer for a local address would result in inconsistency between BGP and RIB/FIB. Signed-off-by: Enke Chen <[email protected]>
Adjsut topotest/bgp_l3vpn_to_bgp_direct post the patch that rejects host routes for the local addresses from BGP peers. Signed-off-by: Enke Chen <[email protected]>
c3c70d9
to
29397c0
Compare
ci:rerun |
1 similar comment
ci:rerun |
Accepting a host route from a BGP peer for a local address would result in inconsistency between BGP and RIB/FIB.