[Snappi] Modifications to pfcwd a2a test design for mlnx 4600c#7367
[Snappi] Modifications to pfcwd a2a test design for mlnx 4600c#7367developfast merged 4 commits intosonic-net:masterfrom
Conversation
|
@baiwei0427 please review |
| speed_gbps = int(speed_str.split('_')[1]) | ||
|
|
||
| """ Retrieve platform information for DUT """ | ||
| platform = duthost.facts['platform'] |
There was a problem hiding this comment.
please get the asic_type instead of platform. All mellanox devices have this behavior
|
@developfast, please modify all the other pfcwd snappi testcases as well for mellanox platform to exclude the rx drop check |
only applies to this test - have verified with Wei |
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
* changes to pfcwd a2a test for mlnx 4600c * changes to pfcwd a2a test for mlnx 4600c * modified test case to take in platform as parameter * changed from platform to asic_type
* changes to pfcwd a2a test for mlnx 4600c * changes to pfcwd a2a test for mlnx 4600c * modified test case to take in platform as parameter * changed from platform to asic_type
Signed-off-by: Austin Pham <austinpham@microsoft.com>
fix: migrate sonic-net#7370 to multidut code Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#9567 to multidut code Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#7367 to multidut code Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#7712 Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#7712 to pfcwd_multidut_runtime_traffic_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: update a2a parameterize Signed-off-by: Austin Pham <austinpham@microsoft.com>
fix: migrate sonic-net#7370 to multidut code Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#9567 to multidut code Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#7367 to multidut code Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#7712 Signed-off-by: Austin Pham <austinpham@microsoft.com> fix: migrate sonic-net#7712 to pfcwd_multidut_runtime_traffic_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: update a2a parameterize Signed-off-by: Austin Pham <austinpham@microsoft.com>
Summary: Update the missing T0 T1 tests feature in multidut Fixes # (issue) 30929279 The following PR were migrated for pfcwd [Snappi] Increase number of calls for ARP wait #7370 [Snappi] PFCWD Tolerance Fixes #9567 [Snappi] Modifications to pfcwd a2a test design for mlnx 4600c #7367 to multidut code [Snappi] Modified pfcwd tests to add warm-up traffic #7712 Signed-off-by: Austin Pham <austinpham@microsoft.com>
Summary: Update the missing T0 T1 tests feature in multidut Fixes # (issue) 30929279 The following PR were migrated for pfcwd - sonic-net/sonic-mgmt#7370 - sonic-net/sonic-mgmt#9567 - sonic-net/sonic-mgmt#7367 to multidut code - sonic-net/sonic-mgmt#7712 ### Type of change <!-- - Fill x for your type of change. - e.g. - [x] Bug fix --> - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] New Test case - [ ] Skipped for non-supported platforms - [ ] Test case improvement ### Back port request - [ ] 202012 - [ ] 202205 - [ ] 202305 - [ ] 202311 - [ ] 202405 - [ ] 202411 ### Approach #### What is the motivation for this PR? #### How did you do it? #### How did you verify/test it? #### Any platform specific information? #### Supported testbed topology if it's a new test case? ### Documentation <!-- (If it's a new feature, new test case) Did you update documentation/Wiki relevant to your implementation? Link to the wiki page? --> snappi_tests/multidut/pfcwd/test_multidut_pfcwd_m2o_with_snappi.py ``` -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html - generated xml file: /var/src/sonic-mgmt_vmsvc5-t2-8800-ixia_669de75fbbfea63e8b73b319/tests/logs/snappi_tests/multidut/pfcwd/test_multidut_pfcwd_m2o_with_snappi.xml - ================== 4 passed, 7 warnings in 1235.72s (0:20:35) ================== ``` snappi_tests/multidut/pfcwd/test_multidut_pfcwd_burst_storm_with_snappi.py ``` -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html - generated xml file: /var/src/sonic-mgmt_vmsvc5-t2-8800-ixia_669de75fbbfea63e8b73b319/tests/logs/snappi_tests/multidut/pfcwd/test_multidut_pfcwd_burst_storm_with_snappi.xml - ================== 2 passed, 5 warnings in 858.60s (0:14:18) =================== ``` snappi_tests/multidut/pfcwd/test_multidut_pfcwd_basic_with_snappi.py (known failure on T2, fail as expected) ``` SKIPPED [4] snappi_tests/multidut/pfcwd/test_multidut_pfcwd_basic_with_snappi.py:190: Reboot type fast is not supported on cisco-8000 switches FAILED snappi_tests/multidut/pfcwd/test_multidut_pfcwd_basic_with_snappi.py::test_pfcwd_basic_multi_lossless_prio_restart_service[multidut_port_info0-True-swss] ===== 1 failed, 23 passed, 16 skipped, 27 warnings in 27779.49s (7:42:59) ====== ``` snappi_tests/multidut/pfcwd/test_multidut_pfcwd_a2a_with_snappi.py ``` -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html - generated xml file: /var/src/sonic-mgmt_vmsvc5-t2-8800-ixia_669de75fbbfea63e8b73b319/tests/logs/snappi_tests/multidut/pfcwd/test_multidut_pfcwd_a2a_with_snappi.xml - ================== 4 passed, 7 warnings in 1157.40s (0:19:17) ================== ``` snappi_tests/multidut/pfcwd/test_multidut_pfcwd_runtime_traffic_with_snappi.py ``` -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html - generated xml file: /var/src/sonic-mgmt_vmsvc5-t2-8800-ixia_669de75fbbfea63e8b73b319/tests/logs/snappi_tests/multidut/pfcwd/test_multidut_pfcwd_runtime_traffic_with_snappi.xml - ================== 2 passed, 6 warnings in 1162.35s (0:19:22) ================== ```
Summary: Update the missing T0 T1 tests feature in multidut Fixes # (issue) 30929279 The following PR were migrated for pfcwd [Snappi] Increase number of calls for ARP wait sonic-net#7370 [Snappi] PFCWD Tolerance Fixes sonic-net#9567 [Snappi] Modifications to pfcwd a2a test design for mlnx 4600c sonic-net#7367 to multidut code [Snappi] Modified pfcwd tests to add warm-up traffic sonic-net#7712 Signed-off-by: Austin Pham <austinpham@microsoft.com>
Summary: Update the missing T0 T1 tests feature in multidut Fixes # (issue) 30929279 The following PR were migrated for pfcwd [Snappi] Increase number of calls for ARP wait #7370 [Snappi] PFCWD Tolerance Fixes #9567 [Snappi] Modifications to pfcwd a2a test design for mlnx 4600c #7367 to multidut code [Snappi] Modified pfcwd tests to add warm-up traffic #7712 Signed-off-by: Austin Pham <austinpham@microsoft.com>
Summary: Update the missing T0 T1 tests feature in multidut Fixes # (issue) 30929279 The following PR were migrated for pfcwd [Snappi] Increase number of calls for ARP wait sonic-net#7370 [Snappi] PFCWD Tolerance Fixes sonic-net#9567 [Snappi] Modifications to pfcwd a2a test design for mlnx 4600c sonic-net#7367 to multidut code [Snappi] Modified pfcwd tests to add warm-up traffic sonic-net#7712 Signed-off-by: Austin Pham <austinpham@microsoft.com>
Description of PR
Summary: The Mellanox 4600c switch does not drop packets on the Rx port when a PFC storm is generated on a port, thereby triggering the PFC watch dog. The existing pfcwd a2a (all-to-all) test assumed that packets would be dropped on the Rx port, regardless of switch HwSKU. This change modifies how the test will verify the flow of packets for the Mellanox 4600c during a PFCWD all-to-all test.
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Pfcwd a2a test failure on mellanox 4600c switch.
How did you do it?
Added a condition that checks for whether the switch is a mellanox 4600c switch, and have a check to ensure that no packets are dropped on the Rx port.
How did you verify/test it?
Ran the test on the mellanox 4600c - it passed.
Any platform specific information?
Platform - x86_64-mlnx_msn4600c-r0
Supported testbed topology if it's a new test case?
Documentation