-
Notifications
You must be signed in to change notification settings - Fork 929
Add 128 SRv6 sids support #18775
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
Add 128 SRv6 sids support #18775
Conversation
BYGX-wcr
left a comment
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
|
/azp run |
|
Commenter does not have sufficient privileges for PR 18775 in repo sonic-net/sonic-mgmt |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@echuawu, please check the formatting issue. |
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.
You should use wait_until to validate BGP sessions to avoid failures because BGP daemon not up in time.
There is wait_until during validation of bgp sessions: |
Fixed |
That is not sufficient. When I ran this in our lab, this function triggered a runtime error because the BGP daemon was not up yet when the duthost.check_bgp_session_state calls bgp_facts. |
Do you have any suggestion on this check? Just do not use duthost.check_bgp_session_state? |
Before the _validate_bgp_session, there is a bgp service check, isn't it enough? |
at least not enough in our lab, you can skip checking BGP sessions and add more wait time for checking if the BGP routes are synced |
Updated, please review. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1.Auto generate 128 SRv6 locators and sids 2.Auto generate 128 matching packets 2.1.Test DIP shift 2.2.Test uSID container copy action 2.3.Test USD flavor 2.4.Test DSCP mapping 2.5.Test ttl and hop limit change 3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter 5.Test SRv6 CRM resource 6.Add static route for 128 sids validation 7.Add check for route asic db installation 8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids 10.Use command line to set SRv6 packet type
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
BYGX-wcr
left a comment
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
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
hi @echuawu , do you mind to help manual picking this change to 202412? |
1.Auto generate 128 SRv6 locators and sids 2.Auto generate 128 matching packets 2.1.Test DIP shift 2.2.Test uSID container copy action 2.3.Test USD flavor 2.4.Test DSCP mapping 2.5.Test ttl and hop limit change 3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter 5.Test SRv6 CRM resource 6.Add static route for 128 sids validation 7.Add check for route asic db installation 8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids 10.Use command line to set SRv6 packet type
|
Cherry-pick PR to 202505: #18945 |
Please check Azure/sonic-mgmt.msft#396 |
1.Auto generate 128 SRv6 locators and sids 2.Auto generate 128 matching packets 2.1.Test DIP shift 2.2.Test uSID container copy action 2.3.Test USD flavor 2.4.Test DSCP mapping 2.5.Test ttl and hop limit change 3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter 5.Test SRv6 CRM resource 6.Add static route for 128 sids validation 7.Add check for route asic db installation 8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids 10.Use command line to set SRv6 packet type
<!-- Please make sure you've read and understood our contributing guidelines; https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md Please provide following information to help code review process a bit easier: --> ### Description of PR 1.Add more timeout for ptf to handle a large scale of bgp packets after config reload/bgp restart/reboot 2.Add BGP route sync check This PR would based on the sonic-net/sonic-mgmt#18775 Summary: Fixes # (issue) ### Type of change <!-- - Fill x for your type of change. - e.g. - [x] Bug fix --> - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] New Test case - [ ] Skipped for non-supported platforms - [x] Test case improvement ### Back port request - [ ] 202205 - [ ] 202305 - [ ] 202311 - [ ] 202405 - [ ] 202411 - [ ] 202505 ### Approach #### What is the motivation for this PR? Case not stable #### How did you do it? 1.Add more timeout for ptf to handle a large scale of bgp packets after config reload/bgp restart/reboot 2.Add BGP route sync check #### How did you verify/test it? Run it in local setup #### Any platform specific information? #### Supported testbed topology if it's a new test case? ### Documentation <!-- (If it's a new feature, new test case) Did you update documentation/Wiki relevant to your implementation? Link to the wiki page? -->
… srv6 test cases (#511) <!-- Please make sure you've read and understood our contributing guidelines; https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md Please provide following information to help code review process a bit easier: --> ### Description of PR 1.Add more timeout for ptf to handle a large scale of bgp packets after config reload/bgp restart/reboot 2.Add BGP route sync check This PR would based on the sonic-net/sonic-mgmt#18775 Summary: Fixes # (issue) ### Type of change <!-- - Fill x for your type of change. - e.g. - [x] Bug fix --> - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] New Test case - [ ] Skipped for non-supported platforms - [x] Test case improvement ### Back port request - [ ] 202205 - [ ] 202305 - [ ] 202311 - [ ] 202405 - [ ] 202411 - [ ] 202505 ### Approach #### What is the motivation for this PR? Case not stable #### How did you do it? 1.Add more timeout for ptf to handle a large scale of bgp packets after config reload/bgp restart/reboot 2.Add BGP route sync check #### How did you verify/test it? Run it in local setup #### Any platform specific information? #### Supported testbed topology if it's a new test case? ### Documentation <!-- (If it's a new feature, new test case) Did you update documentation/Wiki relevant to your implementation? Link to the wiki page? -->
1.Auto generate 128 SRv6 locators and sids 2.Auto generate 128 matching packets 2.1.Test DIP shift 2.2.Test uSID container copy action 2.3.Test USD flavor 2.4.Test DSCP mapping 2.5.Test ttl and hop limit change 3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter 5.Test SRv6 CRM resource 6.Add static route for 128 sids validation 7.Add check for route asic db installation 8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids 10.Use command line to set SRv6 packet type
1.Auto generate 128 SRv6 locators and sids 2.Auto generate 128 matching packets 2.1.Test DIP shift 2.2.Test uSID container copy action 2.3.Test USD flavor 2.4.Test DSCP mapping 2.5.Test ttl and hop limit change 3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter 5.Test SRv6 CRM resource 6.Add static route for 128 sids validation 7.Add check for route asic db installation 8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids 10.Use command line to set SRv6 packet type Signed-off-by: opcoder0 <[email protected]>
1.Auto generate 128 SRv6 locators and sids 2.Auto generate 128 matching packets 2.1.Test DIP shift 2.2.Test uSID container copy action 2.3.Test USD flavor 2.4.Test DSCP mapping 2.5.Test ttl and hop limit change 3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter 5.Test SRv6 CRM resource 6.Add static route for 128 sids validation 7.Add check for route asic db installation 8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids 10.Use command line to set SRv6 packet type Signed-off-by: Aharon Malkin <[email protected]>
1.Auto generate 128 SRv6 locators and sids 2.Auto generate 128 matching packets 2.1.Test DIP shift 2.2.Test uSID container copy action 2.3.Test USD flavor 2.4.Test DSCP mapping 2.5.Test ttl and hop limit change 3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter 5.Test SRv6 CRM resource 6.Add static route for 128 sids validation 7.Add check for route asic db installation 8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids 10.Use command line to set SRv6 packet type Signed-off-by: Guy Shemesh <[email protected]>
Description of PR
Including configuration and function coverage:
1.Auto generate 128 SRv6 locators and sids
2.Auto generate 128 matching packets
2.1.Test DIP shift
2.2.Test uSID container copy action
2.3.Test USD flavor
2.4.Test DSCP mapping
2.5.Test ttl and hop limit change
3.Split SRH and non SRH packets test into two test cases required by MSFT 3.1.Test reboot and BGP restart test randomly to save time 4.Test SRv6 counter
5.Test SRv6 CRM resource
6.Add static route for 128 sids validation
7.Add check for route asic db installation
8.Add timeout when captureing packet to override large scale of BGP update packets affection 9.Use a unified locator block for all the sids
10.Use command line to set SRv6 packet type
This PR should be merged after the design PRs merged:
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Enhance the SRv6 test coverage for the counter and CRM and 128 my sids
How did you do it?
Add validations for SRv6 counter and CRM and 128 my sids
How did you verify/test it?
Run it in local setup
Any platform specific information?
Mellanox SPC4 and later platforms
Supported testbed topology if it's a new test case?
Documentation