-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Snappi] Update test PFC pause frame functionality to include DUT counter polling #9847
Conversation
…into tx_rx_check_test
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:
|
@@ -821,6 +823,42 @@ def get_pfc_frame_count(duthost, port, priority, is_tx=False): | |||
return int(pause_frame_count.replace(',', '')) | |||
|
|||
|
|||
def get_tx_frame_count(duthost, port): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unify these 2 functions - get_tx_frame_count and get_rx_frame_count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unified in #9775. this PR is dependent on that PR.
@developfast PR conflicts with 202012 branch |
@developfast PR conflicts with 202205 branch |
…nter polling (sonic-net#9847) Summary: Currently, all verification for PFC pause frames are done by polling the ixia device at the end of the test. We need to add functionality to poll the appropriate counters on the DUT while the DUT continues to receive PFC pause frames from the neighboring device. This PR is dependent on sonic-net#9775. Fixes (issue) sonic-net#9843
Cherry-pick PR to 202305: #10450 |
…nter polling (#9847) Summary: Currently, all verification for PFC pause frames are done by polling the ixia device at the end of the test. We need to add functionality to poll the appropriate counters on the DUT while the DUT continues to receive PFC pause frames from the neighboring device. This PR is dependent on #9775. Fixes (issue) #9843
…h_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
…h_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
…h_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
chore: migrate sonic-net#15002 to multidut_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: fix disable_pfcwd Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: migrate sonic-net#9847 to test_multidut_pfc_pause_lossless_with_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
chore: migrate sonic-net#11704 to multidut_helper chore: migrate sonic-net#15002 to multidut_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: fix disable_pfcwd Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: migrate sonic-net#9847 to test_multidut_pfc_pause_lossless_with_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
chore: migrate sonic-net#11704 to multidut_helper chore: migrate sonic-net#15002 to multidut_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: fix disable_pfcwd Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: migrate sonic-net#9847 to test_multidut_pfc_pause_lossless_with_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
chore: migrate sonic-net#11704 to multidut_helper chore: migrate sonic-net#15002 to multidut_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: fix disable_pfcwd Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: migrate sonic-net#9847 to test_multidut_pfc_pause_lossless_with_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
chore: migrate sonic-net#11704 to multidut_helper chore: migrate sonic-net#15002 to multidut_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: fix disable_pfcwd Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: migrate sonic-net#9847 to test_multidut_pfc_pause_lossless_with_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
chore: migrate sonic-net#11704 to multidut_helper chore: migrate sonic-net#15002 to multidut_helper Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: fix disable_pfcwd Signed-off-by: Austin Pham <austinpham@microsoft.com> chore: migrate sonic-net#9847 to test_multidut_pfc_pause_lossless_with_snappi Signed-off-by: Austin Pham <austinpham@microsoft.com>
Description of PR Summary: Fixes # (issue) 31085729 Migrate the following PR: [Snappi] Update test PFC pause frame functionality to include DUT counter polling #9847 Fixed the failure of test_valid_pfc_frame_with_snappi.py in Cisco DUT #15002 [Snappi] Bug fix for checking counters to account for forwarding lag #11704 Approach What is the motivation for this PR? Migrate PRs for pfc test cases to t2 Signed-off-by: Austin Pham <austinpham@microsoft.com>
Description of PR Summary: Fixes # (issue) 31085729 Migrate the following PR: [Snappi] Update test PFC pause frame functionality to include DUT counter polling sonic-net#9847 Fixed the failure of test_valid_pfc_frame_with_snappi.py in Cisco DUT sonic-net#15002 [Snappi] Bug fix for checking counters to account for forwarding lag sonic-net#11704 Approach What is the motivation for this PR? Migrate PRs for pfc test cases to t2 Signed-off-by: Austin Pham <austinpham@microsoft.com>
Description of PR
Summary: Currently, all verification for PFC pause frames are done by polling the ixia device at the end of the test. We need to add functionality to poll the appropriate counters on the DUT while the DUT continues to receive PFC pause frames from the neighboring device.
This PR is dependent on #9775.
Fixes (issue) #9843
Type of change
Back port request
Approach
What is the motivation for this PR?
Poll DUT on top on ixia when the test runs
How did you do it?
How did you verify/test it?
Tested on lab device
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation