Skip to content

Comments

[202503] Fix test_xon_not_counted.py fanout port selection#1008

Open
markx-arista wants to merge 1 commit intoAzure:202503from
markx-arista:202503-fix-fanout-port-selection-for-test-xon-not-counted
Open

[202503] Fix test_xon_not_counted.py fanout port selection#1008
markx-arista wants to merge 1 commit intoAzure:202503from
markx-arista:202503-fix-fanout-port-selection-for-test-xon-not-counted

Conversation

@markx-arista
Copy link

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.
Manually cherry-pick of sonic-net/sonic-mgmt#22114

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant