-
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: update route leak after vrf interface changes #15351
Conversation
ci:rerun |
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 okay
r1 = tgen.gears["r1"] | ||
|
||
logger.info("Ping from default to DONNA") | ||
output = r1.run("ping -c 4 -w 4 -I 10.0.4.1 10.0.0.1") |
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 we reuse check_ping()?
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.
done
Test functions were duplicated by mistakes. They were identical. Fixes: 8af61c8 ("topotests: test leak from the default vrf") Signed-off-by: Louis Scalbert <[email protected]>
Allow specifying a source_addr in check_ping library function. Signed-off-by: Louis Scalbert <[email protected]>
Use check_ping in bgp_vrf_route_leak_basic Signed-off-by: Louis Scalbert <[email protected]>
Locally leaked routes remain active after the nexthop VRF interface goes down. Update route leaking when the loopback or a VRF interface state change is received from zebra. Signed-off-by: Louis Scalbert <[email protected]>
Check that local route leaks are set to "inactive" when the VRF interface is shutdown and, conversely, that they are set to "active" when the VRF interface is unshut. Signed-off-by: Louis Scalbert <[email protected]>
If the VRF is not yet created and a BGP instance is created for the VRF, dependent leaked routes are inactive, which is normal. However, when the VRF interface appears, they remains inactive. Update route leak when a VRF interface appears. Note that routes to a deleted VRF are already removed by zebra. Signed-off-by: Louis Scalbert <[email protected]>
Ensure that a locally leaked route is updated after a VRF (dis)appears. Signed-off-by: Louis Scalbert <[email protected]>
cebb290
to
1262ee6
Compare
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
Locally leaked routes are not updated after the nexthop VRF interface appears/disappears or goes down/up.
Fix the issues