sonic-mgmt
sonic-mgmt copied to clipboard
Add static route ASIC DB check for test_nhop_group test
Description of PR
Add the static route ASIC DB validation in cases of weak switch
Summary: Fixes # (issue)
Type of change
- [x] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] Test case(new/improvement)
Back port request
- [ ] 202012
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [x] 202405
Approach
What is the motivation for this PR?
For some weak CPU switch, such as Mellanox SN2700 with A0 chip type. The fixed 15 seconds is not enough to handle a bunch of BGP route add/delete and static route add/delete. So the case would failed from time to time.
How did you do it?
Add a ASIC DB check for the static route validation.
How did you verify/test it?
Run it in internal regression.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation
/azpw run
/AzurePipelines run
Azure Pipelines successfully started running 1 pipeline(s).
/azpw run
/AzurePipelines run
Azure Pipelines successfully started running 1 pipeline(s).
@abdosi @prsunny Can you help review?
Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-mgmt/pull/15373