Skip to content

[action] [PR:19445] [Snappi] Fix tx/rx port sequence in test_pfc_port_congestion.py#19959

Merged
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19445
Jul 31, 2025
Merged

[action] [PR:19445] [Snappi] Fix tx/rx port sequence in test_pfc_port_congestion.py#19959
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19445

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
Fixes the following issues in test_pfc_port_congestion.py:

  1. Fixed the rx/tx port sequence, the currnet port_map is defined as [total egress port, egress port speed, total ingress ports, ingress port speed]. So get the rx port info from the first two elements.
  2. pfcwd will be triggered on cisco platform as we are sending oversubscribed traffic, so disabling it during the test.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Adopt this test case for 400G speed

How did you do it?

Fixed the case to use correct RX/TX port_map sequence. and disable pfcwd inside the test case.

How did you verify/test it?

snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info0-port_map0] SKIPPED [ 6%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info0-port_map1] 
-------------------------------- live log call ---------------------------------
05:07:37 connection._warn L0332 WARNING| Verification of certificates is disabled
05:07:37 connection._warn L0332 WARNING| Unable to connect to http://10.206.144.17:443.
PASSED [ 12%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info1-port_map0] SKIPPED [ 18%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info1-port_map1] PASSED [ 25%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info0-port_map0] SKIPPED [ 31%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info0-port_map1] PASSED [ 37%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info1-port_map0] SKIPPED [ 43%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info1-port_map1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info0-port_map0] SKIPPED [ 56%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info0-port_map1] PASSED [ 62%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info1-port_map0] SKIPPED [ 68%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info1-port_map1] PASSED [ 75%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info0-port_map0] SKIPPED [ 81%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info0-port_map1] PASSED [ 87%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info1-port_map0] SKIPPED [ 93%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info1-port_map1] PASSED [100%]

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #19445

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 66464fe into sonic-net:202505 Jul 31, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants