Fix the issue of SAI next-hop member removal error when ports that accept routes that are eligible for default route swap are toggle multiple times#23
Conversation
accept routes that are eligible for default route swap are toggle multiple times Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
|
@yejianquan for viz. |
|
nice catch @abdosi ! |
For points Since there are multiple Route with same nexthop group we might get message to delete R with [P1,P2,P3] but R' can still point to [P1,P2,P3] Do the SAI errors seen in @arlakshm : Yes it can cause OA crash. Is it possible to add UT for this case? @arlakshm UT added |
I think master PR is not merged yet. It can be updated to add this fix. Also @abdosi , can you share a link to master PR? @prsunny : master pr: sonic-net/sonic-swss#3389 |
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
What I did:
Fix the issue of SAI next-hop member removal error when ports that accept routes that are eligible for default route swap are toggle multiple times
Sequence of flow:
How I fix:
When scenario 6 happens check if Route is already pointing to Defafult Route Nexthop than we don;t need to delete that nexthop.
How I verify:
This scenario got uncovered running: https://github.com/sonic-net/sonic-mgmt/blob/master/tests/platform_tests/link_flap/test_cont_link_flap.py#L109.
After fix issue is not seen