-
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 keep stale paths in Adj-RIB-Out if not addpath aware #18275
Open
ton31337
wants to merge
3
commits into
FRRouting:master
Choose a base branch
from
opensourcerouting:fix/issue_18222_no_topotest
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
bgpd: Do not keep stale paths in Adj-RIB-Out if not addpath aware #18275
ton31337
wants to merge
3
commits into
FRRouting:master
from
opensourcerouting:fix/issue_18222_no_topotest
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7a83efa
to
9bf2ba2
Compare
``` munet> r1 shi vtysh -c 'show ip bgp update advertised-routes' update group 1, subgroup 1 BGP table version is 5, local router ID is 192.168.137.1 Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.0.0.0/24 192.168.137.201 10 0 65200 65444 i *> 10.0.0.0/24 192.168.137.100 10 0 65100 65444 65444 i *> 10.65.10.0/24 192.168.137.100 0 10 0 65100 i *> 10.200.2.0/24 192.168.137.202 0 10 0 65200 i ``` Announce one more 10.0.0.0/24 via 65200 and we have TWO paths 10.0.0.0/24 in adj-rib-out: ``` munet> r1 shi vtysh -c 'show ip bgp update advertised-routes' update group 1, subgroup 1 BGP table version is 6, local router ID is 192.168.137.1 Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.0.0.0/24 192.168.137.201 10 0 65200 65444 i *> 10.0.0.0/24 192.168.137.100 10 0 65100 65444 65444 i *> 10.0.0.0/24 192.168.137.201 10 0 65200 65444 i *> 10.65.10.0/24 192.168.137.100 0 10 0 65100 i *> 10.200.2.0/24 192.168.137.202 0 10 0 65200 i ``` Stop announcing 10.0.0.0/24 via 65200 and we still have TWO paths for 10.0.0.0/24... ``` munet> r1 shi vtysh -c 'show ip bgp update advertised-routes' update group 1, subgroup 1 BGP table version is 7, local router ID is 192.168.137.1 Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.0.0.0/24 192.168.137.201 10 0 65200 65444 i *> 10.0.0.0/24 192.168.137.100 10 0 65100 65444 65444 i *> 10.0.0.0/24 192.168.137.201 10 0 65200 65444 i *> 10.65.10.0/24 192.168.137.100 0 10 0 65100 i *> 10.200.2.0/24 192.168.137.202 0 10 0 65200 i ``` Why do we need to keep old paths in adj-rib-out if we don't have e.g. AddPaths enabled? Shouldn't it be like here? (only one 10.0.0.0/24 in adj-rib-out for this update-group instead of multiple (stale from previous announcements)) ``` munet> r1 shi vtysh -c 'show ip bgp update advertised-routes' update group 1, subgroup 1 BGP table version is 6, local router ID is 192.168.137.1 Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.0.0.0/24 192.168.137.201 10 0 65200 65444 i *> 10.0.0.0/24 192.168.137.201 10 0 65200 65444 i *> 10.65.10.0/24 192.168.137.100 0 10 0 65100 i *> 10.200.2.0/24 192.168.137.202 0 10 0 65200 i ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
There was a case where removing the selected (single best) route leads to adj-rib-out to be vanished at all. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
9bf2ba2
to
afcd211
Compare
2 tasks
riw777
approved these changes
Mar 4, 2025
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 Donatas to clear do not merge label
do you have a topotest for that ? |
… RS setup Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Added a topotest. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Announce one more 10.0.0.0/24 via 65200 and we have TWO paths 10.0.0.0/24 in adj-rib-out:
Stop announcing 10.0.0.0/24 via 65200 and we still have TWO paths for 10.0.0.0/24...
Why do we need to keep old paths in adj-rib-out if we don't have e.g. AddPaths enabled?
Shouldn't it be like here? (only one 10.0.0.0/24 in adj-rib-out for this update-group instead of multiple (stale from previous announcements))
Closes #18222