[SRv6] Add SRv6 control plane test case#16516
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| duthost.command("sonic-db-cli CONFIG_DB HSET SRV6_MY_SIDS\\|loc1\\|fcbb:bbbb:1:1:: action uN") | ||
| time.sleep(WAIT_TIME) | ||
|
|
||
| frr_config = duthost.command("vtysh -c \"show running-config\"")["stdout"] |
There was a problem hiding this comment.
let's make this test case multi-asic aware for future proof.
|
|
||
| # add Vrf1 config | ||
| duthost.command("config vrf add Vrf1") | ||
| duthost.command("sysctl -w net.vrf.strict_mode=1") |
There was a problem hiding this comment.
for sonic testing do we need this >
There was a problem hiding this comment.
yes, without this setting. uDT46 SID will not get programmed into kernel and APPL_DB
There was a problem hiding this comment.
Yes, this is needed.
‑ By default, FRR tries to install all routes in the Linux kernel before installing in SONiC
‑ In order to have the SID programmed into SONiC APPL DB, they must be successfully programmed in the Linux Kernel first
|
/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). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
The changes in this PR (sonic-net/sonic-buildimage#21467) are required here. |
| import pytest | ||
|
|
||
| pytestmark = [ | ||
| pytest.mark.topology('t0') |
There was a problem hiding this comment.
also i think we need to add vs also
abdosi
left a comment
There was a problem hiding this comment.
Just change the marker to include t1 also
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
updated |
What is the motivation for this PR? Script srv6/test_srv6_static_config.py was added in PR #16516, and it fails to run on kvm testbed. We temporarily skip this test in PR testing using conditional mark. How did you do it? We temporarily skip this test in PR testing using conditional mark. How did you verify/test it? Test by pipeline itself to see if this script can be skipped on kvm testbed.
|
Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#42 |
Summary: Add a control plane test case to verify that SRv6 static SIDs gets programmed correctly from CONFIG_DB to APPL_DB.
What is the motivation for this PR? Script srv6/test_srv6_static_config.py was added in PR sonic-net#16516, and it fails to run on kvm testbed. We temporarily skip this test in PR testing using conditional mark. How did you do it? We temporarily skip this test in PR testing using conditional mark. How did you verify/test it? Test by pipeline itself to see if this script can be skipped on kvm testbed.
Description of PR
Summary: Add a control plane test case to verify that SRv6 static SIDs gets programmed correctly from CONFIG_DB to APPL_DB.
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Verify the functionality of SRv6 in Control Plane
How did you do it?
Add two test cases to test the configuration of uN and uDT46 SIDs.
How did you verify/test it?
Run it on VS testbed
Any platform specific information?
VS by now
Supported testbed topology if it's a new test case?
T0 only by now
Documentation