-
Notifications
You must be signed in to change notification settings - Fork 770
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
made test_decap to check both DSCP/TTL modes for SONiC 202012 and later #3887
made test_decap to check both DSCP/TTL modes for SONiC 202012 and later #3887
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
i like the idea here. however, my concern is that maybe some platform does not support uniform/uniform or pipe/pipe combination. if you look at the original code, for 202012+, it is testing uniform/pipe combination. i suggest to keep this combination. maybe for your platform, you can test uniform/uniform and pipe/pipe combination. |
@lguohan I've made changes, please review. I decided to introduce ttl/dscp CLI flags to have an ability to communicate uniform mode support to the test, so test parameters set is built based on that. Flag defaults are set to the combination you requested - dscp=uniform, ttl=pipe |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
|
||
# The hostvars dict has definitions defined in ansible/group_vars/sonic/variables | ||
hostvars = duthosts[0].host.options["variable_manager"]._hostvars[duthosts[0].hostname] | ||
sonic_hwsku = duthosts[0].sonichost.facts["hwsku"] | ||
mellanox_hwskus = hostvars.get("mellanox_hwskus", []) | ||
|
||
if sonic_hwsku in mellanox_hwskus: | ||
dscp_mode = "uniform" |
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.
This breaks mellanox skus. MLNX supports "uniform" on all image versions
…er (sonic-net#3887) Description of PR Summary: made test_decap to check both DSCP/TTL modes for SONiC 202012 and later Fix sonic-net#3355 uniform mode for ttl and dscp became available for IPinIP tunnel configuration starting from 202012 so made the test to run with ttl/dscp uniform mode for OS ver 202012 and later. Approach What is the motivation for this PR? Adapt the test to covered feature improvements How did you do it? Parametrized the test to run with uniform ttl/dscp mode if supported for a given OS ver How did you verify/test it? py.test --inventory=../ansible/lab,../ansible/veos --testbed_file=../ansible/testbed.csv --module-path=../ansible/library -v -rA --topology=any decap/test_decap.py
Description of PR
Summary: made test_decap to check both DSCP/TTL modes for SONiC 202012 and later
Fix #3355
Type of change
Back port request
Approach
What is the motivation for this PR?
Adapt the test to covered feature improvements
How did you do it?
Parametrized the test to run with uniform ttl/dscp mode if supported for a given OS ver
How did you verify/test it?
py.test --inventory=../ansible/lab,../ansible/veos --testbed_file=../ansible/testbed.csv --module-path=../ansible/library -v -rA --topology=any decap/test_decap.py
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation