Skip to content

Comments

Fix test_xon_not_counted.py fanout port selection#22114

Merged
bingwang-ms merged 1 commit intosonic-net:masterfrom
markx-arista:fix-fanout-port-selection-for-test-xon-not-counted
Feb 5, 2026
Merged

Fix test_xon_not_counted.py fanout port selection#22114
bingwang-ms merged 1 commit intosonic-net:masterfrom
markx-arista:fix-fanout-port-selection-for-test-xon-not-counted

Conversation

@markx-arista
Copy link
Contributor

@markx-arista markx-arista commented Jan 23, 2026

Description of PR

Summary:
Follow test_pfc_counters.py, only select active port and convert fanout port to Linux interface name based on its OS.
Move name conversion helper functions to device_utils.py.

Fixes # (issue)

Type of change

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

Back port request

  • 202503
  • 202511

Approach

What is the motivation for this PR?

Test failed due to using non-Sonic fanout and we need to select active port only

How did you do it?

Fix it by following test_pfc_counters.py and move helper functions to device_utils.py

How did you verify/test it?

test_xon_not_counted.py passed with EOS fanout

Any platform specific information?

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

Documentation

Follow test_pfc_counters.py, only select active port and convert fanout port
to Linux interface name based on its OS.
Move name conversion helper functions to device_utils.py.

Signed-off-by: markxiao <markxiao@arista.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@bingwang-ms bingwang-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the improvement.

@bingwang-ms bingwang-ms merged commit 640e40e into sonic-net:master Feb 5, 2026
22 checks passed
@markx-arista
Copy link
Contributor Author

Manually cherry-pick to 202503: Azure/sonic-mgmt.msft#1008

abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Feb 6, 2026
Follow test_pfc_counters.py, only select active port and convert fanout port
to Linux interface name based on its OS.
Move name conversion helper functions to device_utils.py.

Signed-off-by: markxiao <markxiao@arista.com>
Anirudh-nokia pushed a commit to Anirudh-nokia/sonic-mgmt-fork that referenced this pull request Feb 6, 2026
Follow test_pfc_counters.py, only select active port and convert fanout port
to Linux interface name based on its OS.
Move name conversion helper functions to device_utils.py.

Signed-off-by: markxiao <markxiao@arista.com>
Signed-off-by: ayya <anirudh.ayya@nokia.com>
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Feb 12, 2026
Follow test_pfc_counters.py, only select active port and convert fanout port
to Linux interface name based on its OS.
Move name conversion helper functions to device_utils.py.

Signed-off-by: markxiao <markxiao@arista.com>
Signed-off-by: nnelluri-cisco <nnelluri@cisco.com>
anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
Follow test_pfc_counters.py, only select active port and convert fanout port
to Linux interface name based on its OS.
Move name conversion helper functions to device_utils.py.

Signed-off-by: markxiao <markxiao@arista.com>
Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
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.

3 participants