typo in STL API help + update trex21 tests config
authorYaroslav Brustinov <[email protected]>
Thu, 9 Mar 2017 11:49:13 +0000 (13:49 +0200)
committerYaroslav Brustinov <[email protected]>
Thu, 9 Mar 2017 11:49:13 +0000 (13:49 +0200)
Change-Id: Ic15d639332ce4898010cb98c458ce4accffbef29
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/automation/regression/stateless_tests/stl_client_test.py
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py

index b9e1748..3bc08af 100644 (file)
@@ -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
 
index 7761be4..7497b1b 100755 (executable)
@@ -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'