-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[FRR] Fixing zebra to handle non notification of better admin won #17184
Conversation
@prsunny @bingwang-ms FYI this is must for 202305 |
hi @dgsudharsan two questions.
|
@StormLiangMS Please check the comment here FRRouting/frr#14795 (comment) Regarding the test gap, do you want us to file a test issue in sonic-mgmt? |
Yes, pls file a test issue in sonic-mgmt. |
For the issue, can I understand like below.
with this patch: And one more question, why this issue only happened with network command route but not others? |
I think this is correct. Why it happens only with network command, I am not sure. @donaldsharp Can you please share your insights? |
Without the network command BGP would just have a route from a peer that was not installed which it would never indicate to another peer with bgp suppress fib turned on. So BGP was in a broken state but the broken state was irrelevant because suppress-fib would never allow the route to be passed on to peers |
@StormLiangMS Here is the test gap I filed sonic-net/sonic-mgmt#10837 |
thanks for this details. @dgsudharsan @donaldsharp |
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
ADO: 25944682 |
…nic-net#17184) * [FRR]Fixing zebra to handle non notification of better admin won * Updating the patch with latest changes from FRR
Cherry-pick PR to 202305: #17279 |
…7184) * [FRR]Fixing zebra to handle non notification of better admin won * Updating the patch with latest changes from FRR
…7184) * [FRR]Fixing zebra to handle non notification of better admin won * Updating the patch with latest changes from FRR
…the TOR (#14683) Description of PR Summary: Fixes # (issue) #10837 Orignal Problem In multipath scenario when a route is advertised through network command from two neighbors, only one path is chosen. Doing clear bgp * recovers the device from this scenario. If the same route (be it default or non-default) is advertised from two leaf to a ToR, the leaf initially shows only one leaf's links as next hop. When we do clear bgp *, it is then updated. B>* 20.0.0.1/32 [20/0] via 192.168.1.2, PortChannel1, weight 1, 00:16:52 via 192.168.2.2, PortChannel2, weight 1, 00:16:52 via 192.168.3.2, PortChannel3, weight 1, 00:16:52 via 192.168.4.2, PortChannel4, weight 1, 00:16:52 After doing clear bgp * in tgn-sonic-n2-t1 I can see this B>* 20.0.0.1/32 [20/0] via 192.168.1.2, PortChannel1, weight 1, 00:00:02 via 192.168.2.2, PortChannel2, weight 1, 00:00:02 via 192.168.3.2, PortChannel3, weight 1, 00:00:02 via 192.168.4.2, PortChannel4, weight 1, 00:00:02 via 192.168.5.2, PortChannel5, weight 1, 00:00:02 via 192.168.6.2, PortChannel6, weight 1, 00:00:02 via 192.168.8.2, PortChannel8, weight 1, 00:00:02 This issue was fixed in PR sonic-net/sonic-buildimage#17184 However a test for this was missing. so this test adds a prefix on 2 T1 neighbors using network command and checks if the advertised route is learnt on the T0 DUT
…the TOR (sonic-net#14683) Description of PR Summary: Fixes # (issue) sonic-net#10837 Orignal Problem In multipath scenario when a route is advertised through network command from two neighbors, only one path is chosen. Doing clear bgp * recovers the device from this scenario. If the same route (be it default or non-default) is advertised from two leaf to a ToR, the leaf initially shows only one leaf's links as next hop. When we do clear bgp *, it is then updated. B>* 20.0.0.1/32 [20/0] via 192.168.1.2, PortChannel1, weight 1, 00:16:52 via 192.168.2.2, PortChannel2, weight 1, 00:16:52 via 192.168.3.2, PortChannel3, weight 1, 00:16:52 via 192.168.4.2, PortChannel4, weight 1, 00:16:52 After doing clear bgp * in tgn-sonic-n2-t1 I can see this B>* 20.0.0.1/32 [20/0] via 192.168.1.2, PortChannel1, weight 1, 00:00:02 via 192.168.2.2, PortChannel2, weight 1, 00:00:02 via 192.168.3.2, PortChannel3, weight 1, 00:00:02 via 192.168.4.2, PortChannel4, weight 1, 00:00:02 via 192.168.5.2, PortChannel5, weight 1, 00:00:02 via 192.168.6.2, PortChannel6, weight 1, 00:00:02 via 192.168.8.2, PortChannel8, weight 1, 00:00:02 This issue was fixed in PR sonic-net/sonic-buildimage#17184 However a test for this was missing. so this test adds a prefix on 2 T1 neighbors using network command and checks if the advertised route is learnt on the T0 DUT
Why I did it
To fix #17183.
When a route is getting advertised from two paths through network command, only one of the paths is chosen. This was fixed in FRR through FRRouting/frr#14795
Work item tracking
How I did it
Porting the FRR fix
How to verify it
Manually tested the scenario. Additionally verified through regression.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)