summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py2
-rw-r--r--scripts/stl/udp_1pkt_simple.py6
2 files changed, 3 insertions, 5 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
index 90a17ce2..76e6898c 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
@@ -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 = {}
diff --git a/scripts/stl/udp_1pkt_simple.py b/scripts/stl/udp_1pkt_simple.py
index 2cfb9f1d..2a2c8838 100644
--- a/scripts/stl/udp_1pkt_simple.py
+++ b/scripts/stl/udp_1pkt_simple.py
@@ -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