accident - fixed problems from previous commit
authorimarom <[email protected]>
Thu, 25 Feb 2016 15:26:21 +0000 (10:26 -0500)
committerimarom <[email protected]>
Thu, 25 Feb 2016 15:26:21 +0000 (10:26 -0500)
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
scripts/stl/udp_1pkt_simple.py

index 90a17ce..76e6898 100644 (file)
@@ -1671,7 +1671,7 @@ class STLClient(object):
             raise STLArgumentError('ports', ports, valid_values = self.get_all_ports())
 
         # check arguments
-        validate_type('promiscuous', promiscuous, bool)
+        validate_type('promiscuous', promiscuous, (bool, NoneType))
 
         # build attributes
         attr_dict = {}
index 2cfb9f1..2a2c883 100644 (file)
@@ -3,10 +3,8 @@ from trex_stl_lib.api import *
 class STLS1(object):
 
     def create_stream (self):
-        return STLStream( packet = STLPktBuilder(pkt = Ether(dst = "5")/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
-                          #mode = STLTXCont()
-                          mode = STLTXSingleBurst(total_pkts = 1)
-                          )
+        return STLStream( packet = STLPktBuilder(pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
+                          mode = STLTXCont())
 
     def get_streams (self, direction = 0):
         # create 1 stream