-
Notifications
You must be signed in to change notification settings - Fork 732
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 basic MPLS testcases #3483
Add basic MPLS testcases #3483
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Change in configuration
Change in DB
Change in DB
Change in DB config
One concern is hardcoding values in json file, e.g. Nexthop IP, interface names etc. It will be better if these files can be generated by getting the interface names and nexthops at run time. |
I understand the scope is MPLS basic forwarding. In addition to the tests you already listed, I think more can be added for basic MPLS forwarding tests. For e.g following test cases should be added for label forwarding tests. Feel free to add more. POP - multi label, only top label should be poppped NHOP ECMP:
LABEL ECMP
LABEL ECMP - port flap
MPLS QoS
MAX Labels test
Negative test case:
|
Adding setup in conftest file
Addressing review comments.
Removing unused codes
Removeing unused code
This pull request introduces 1 alert when merging a101ed0 into 5fecae8 - view on LGTM.com new alerts:
|
Correction for lgtm
addressing lgtm review
@wangxin would you please help to approve if you are ok with the change? Thanks. |
@SijiJ would you please to address all the comments to move forward? This is blocking the 202111 final delivery. Thanks. |
Moved all review comments to resolved. |
Extra lines
Removed abc
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Description of PR
Summary: To add basic MPLS testcases to sonic-mgmt/tests
The PR adds basic label forwarding tests involving push, swap, pop operatios.
Fixes # (issue)
Type of change
Approach
What is the motivation for this PR?
As part of qualification of new MPLS feature added.
How did you do it?
Added MPLS feature testcases on t1 Pytest testbed.
How did you verify/test it?
Verified it on t1 testbed. All three MPLS label action ,push, pop and swap.
Any platform specific information?
Verified on Juniper PTX10008, it would work on any platform with MPLS SAI support.
Supported testbed topology if it's a new test case?
T1
Documentation
https://github.com/SijiJ/sonic-mgmt/blob/master/docs/testplan/MPLS-test-plan.md