summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-03-09 13:49:13 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-03-09 13:49:13 +0200
commit94a7c25c5f788df6e3577679e0f37a67a298ceae (patch)
tree8cea262a7e83ed8bab556ea3c41be2fcd0ab085f
parentf48443a11497c9a38c1aa3df42741e4a55ac780f (diff)
typo in STL API help + update trex21 tests config
Change-Id: Ic15d639332ce4898010cb98c458ce4accffbef29 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r--scripts/automation/regression/stateless_tests/stl_client_test.py7
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py2
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 b9e1748..3bc08af 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 7761be4..7497b1b 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'