Skip iface loopback test if Leaf-fanout switch is running SONiC and Mellanox ASIC #12931
Conversation
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
Can we do this kind of skip in condition mark? |
Unfortunately no. We can only check the ASIC type for DUT in condition_mark.yml. Checking the OS and ASIC of leaf fanout is not supported. |
|
@roy-sror I would like to merge this PR to unblock the nightly test, and revert it once TPID is available in the image. Please let me know if you have any concern. Thanks! |
…ellanox ASIC (sonic-net#12931) * Skip iface_loopback_action test if leaf-fanout switch is Mellanox and running SONiC
|
Cherry-pick PR to 202311: #13128 |
…ellanox ASIC (#12931) * Skip iface_loopback_action test if leaf-fanout switch is Mellanox and running SONiC
…ellanox ASIC (sonic-net#12931) * Skip iface_loopback_action test if leaf-fanout switch is Mellanox and running SONiC
Description of PR
Summary:
The test cases in
test_iface_loopback_action.pyis failing consistently on some testbed when the leaf-fanout is Mellanox and running SONiC. This is because the test sends packets with Vlan tag for testing, while TPID is not supported on Mellanox if running SONiC OS.So the test needs to be skipped in the above setup.
Type of change
Back port request
Approach
What is the motivation for this PR?
This PR is to skip
test_iface_loopback_action.pyif the leaf-fanout is Mellanox and running SONiC.How did you do it?
Add a fixture to check OS and ASIC of leaf-fanout switch.
How did you verify/test it?
The change is verified on a physical testbed.
Any platform specific information?
Mellanox platform specific.
Supported testbed topology if it's a new test case?
Not a new test case.
Documentation