Skip to content

[action] [PR:15002] Fixed the failure of test_valid_pfc_frame_with_snappi.py in Cisco DUT #15360

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/15002
Nov 13, 2024
Merged

[action] [PR:15002] Fixed the failure of test_valid_pfc_frame_with_snappi.py in Cisco DUT #15360
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/15002

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

test_valid_pfc_frame_with_snappi.py fails in Cisco DUT.
The issue was due to PFC capture sampling not detecting an XOFF frame in the capture.

How did you do it?

  • As Cisco DUT generates XON frames, this causes the PFC capture sampling to not detect a XOFF frame in the capture.

Added a new pcap read logic using a custom Cisco specific function to verify a valid PFC frame in the capture.

  • Further, the buffer size for capture could be small or big depending on the IXIA model's capability
    Hence using continuous XOFF injection to avoid overwriting the buffer with XON frames post a XON-XOFF-XON transition

How did you verify/test it?

Verified on Cisco DUT

----------------------------------------------------------------------------------------------------
INFO:root:Can not get Allure report URL. Please check logs
==================================================================================================================================== short test summary info ====================================================================================================================================
PASSED snappi_tests/pfc/test_valid_pfc_frame_with_snappi.py::test_valid_pfc_frame
=========================================================================================================================== 1 passed, 4 warnings in 659.62s (0:10:59) ===========================================================================================================================

Any platform specific information?

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

Documentation

…sonic-net#15002)

* Fixed the testcase as Cisco DUT generates XON frames.
This causes the PFC capture sampling to not detect a XOFF frame being capture.
Further the buffer size for capture could be small or big depending on the IXIA model capabaility
Hence using continous XOFF injection to avoid overwriting the buffer with XON frames post a XON-XOFF-XON transition

* Made !is_cisco do regular else cisco specific
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #15002

@bpar9
Copy link
Copy Markdown
Collaborator

bpar9 commented Nov 6, 2024

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@kevinskwang
Copy link
Copy Markdown
Contributor

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit cc88bb4 into sonic-net:202405 Nov 13, 2024
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.

4 participants