diff options
author | 2016-02-25 10:26:21 -0500 | |
---|---|---|
committer | 2016-02-25 10:26:21 -0500 | |
commit | 032480933eaa065761ac1d5d27b96bced93d5343 (patch) | |
tree | cbe44d33b1d6ae7d566c302dee910cc717e3b167 | |
parent | aaef3f95683bfa1574537c543e4ffc86afb0480f (diff) |
accident - fixed problems from previous commit
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 2 | ||||
-rw-r--r-- | scripts/stl/udp_1pkt_simple.py | 6 |
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 |