forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Snappi] PFC code refactor for Snappi (sonic-net#8660)
PFC directory code refactor
- Loading branch information
1 parent
7081a4f
commit 0c46ac0
Showing
7 changed files
with
790 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
The SnappiTestParams module allows for modular pass through of test parameters for all Snappi based tests. | ||
""" | ||
|
||
from tests.common.snappi.common_helpers import packet_capture | ||
|
||
|
||
class SnappiTestParams(): | ||
def __init__(self): | ||
""" | ||
Initialize the SnappiTestParams class | ||
Params: | ||
headroom_test_params (array): 2 element array if the associated pfc pause quanta | ||
results in no packet drop [pfc_delay, headroom_result] | ||
pfc_pause_src_mac (str): PFC pause source MAC address ex. '00:00:00:fa:ce:01' | ||
set_pfc_class_enable_vec (bool): PFC class enable vector setting | ||
packet_capture_type (ENUM): packet capture type ex. packet_capture.IP_CAPTURE | ||
packet_capture_file (str): packet capture file ex. 'capture.pcapng' | ||
packet_capture_ports (list): packet capture ports on ixia chassis ex. ['Port 1', 'Port 2'] | ||
base_flow_config (dict): base flow configuration | ||
test_tx_frames (list): number of test frames transmitted for priorities to test ex. [2000, 3000] | ||
for priorities 3 and 4 | ||
""" | ||
self.headroom_test_params = None | ||
self.pfc_pause_src_mac = None | ||
self.set_pfc_class_enable_vec = True | ||
self.packet_capture_type = packet_capture.NO_CAPTURE | ||
self.packet_capture_file = None | ||
self.packet_capture_ports = None | ||
self.base_flow_config = None | ||
self.test_tx_frames = 0 |
Oops, something went wrong.