SRv6 dataplane test for counter and crm and 128 my sids#18173
SRv6 dataplane test for counter and crm and 128 my sids#18173echuawu wants to merge 0 commit intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
35f63bd to
76a0aec
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
76a0aec to
4bfa970
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@r12f can you help to review and merge it? |
|
Hi @nhe-NV , thanks for the PR. Looks like Swss one is not merged yet, so from your description, this one needs to wait. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
tests/srv6/srv6_utils.py
Outdated
| ['locator_8', '2001:4001:800::'], | ||
| ['locator_9', '2001:5000:900::'], | ||
| ['locator_10', '2001:5001:a00::'] | ||
| [f'locator_{i + 1}', f'{ROUTE_BASE}:{1001 + i}:{1 + i}::', f'{1 + i}'] for i in range(LOCATOR_NUM) |
There was a problem hiding this comment.
we need all uSID being allocated under a single locator. do you mind to update the test case?
tests/srv6/srv6_utils.py
Outdated
| ['locator_8', '2001:4001:800::'], | ||
| ['locator_9', '2001:5000:900::'], | ||
| ['locator_10', '2001:5001:a00::'] | ||
| [f'locator_{i + 1}', f'{ROUTE_BASE}:{1001 + i}:{1 + i}::', f'{1 + i}'] for i in range(LOCATOR_NUM) |
There was a problem hiding this comment.
Please keep the whole block locator unchanged here.
There was a problem hiding this comment.
Hi @BYGX-wcr , per my understanding, you are refering this part "{ROUTE_BASE}:{1001 + i}" to be a fixed value, like "{ROUTE_BASE}:1001", please correct me if there is misunderstanding.
There was a problem hiding this comment.
yes, keep the first /32 the same for all the locators.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
tests/srv6/conftest.py
Outdated
| ) | ||
|
|
||
|
|
||
| @pytest.fixture(scope="class", params=['srh', 'no_srh']) |
There was a problem hiding this comment.
Is this supposed to be specified using CLI option?
There was a problem hiding this comment.
ok, would update it accordingly.
tests/srv6/test_srv6_dataplane.py
Outdated
| def use_param(self, prepare_param): | ||
| self.params = prepare_param | ||
|
|
||
| def _validate_bgp_session(self, duthost): |
There was a problem hiding this comment.
why do we need to validate BGP sessions?
There was a problem hiding this comment.
We always use checking function instead of pure sleep, it always save time for us.
tests/srv6/test_srv6_dataplane.py
Outdated
|
|
||
| with allure.step('Validate SRv6 function after BGP restart'): | ||
|
|
||
| with allure.step('Execute BGP restart'): |
There was a problem hiding this comment.
BGP restart should be a type of the reboot as well. Basically, there are three types of scenarios where SRv6 functions will get reset: reboot/config_reload/BGP_restart
There was a problem hiding this comment.
Do you suggest to move the bgp restart into the step of 'Execute reboot test'?
Description of PR
Including configuration and function coverage:
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