From 94a7c25c5f788df6e3577679e0f37a67a298ceae Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 9 Mar 2017 13:49:13 +0200 Subject: typo in STL API help + update trex21 tests config Change-Id: Ic15d639332ce4898010cb98c458ce4accffbef29 Signed-off-by: Yaroslav Brustinov --- scripts/automation/regression/stateless_tests/stl_client_test.py | 7 +++++-- .../trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/automation/regression/stateless_tests/stl_client_test.py b/scripts/automation/regression/stateless_tests/stl_client_test.py index b9e17487..3bc08af9 100644 --- a/scripts/automation/regression/stateless_tests/stl_client_test.py +++ b/scripts/automation/regression/stateless_tests/stl_client_test.py @@ -21,7 +21,7 @@ class STLClient_Test(CStlGeneral_Test): def setUp(self): CStlGeneral_Test.setUp(self) - if self.is_virt_nics: + if self.is_virt_nics or CTRexScenario.setup_name == 'trex21': self.percentage = 5 self.pps = 500 else: @@ -29,7 +29,10 @@ class STLClient_Test(CStlGeneral_Test): self.pps = 50000 # strict mode is only for 'wire only' connection - self.strict = True if (self.is_loopback and not self.is_virt_nics) else False + if self.is_loopback and not (self.is_virt_nics or CTRexScenario.setup_name == 'trex21'): + self.strict = True + else: + self.strict = False assert 'bi' in CTRexScenario.stl_ports_map diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py index 7761be4d..7497b1b0 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py @@ -1015,7 +1015,7 @@ class STLProfile(object): packet_hook : Callable or function will be applied to every packet - is_split : str + split_mode : str should this PCAP be split to two profiles based on IPs / MACs used for dual mode can be 'MAC' or 'IP' -- cgit 1.2.3-korg