diff options
author | imarom <imarom@cisco.com> | 2016-02-15 03:12:29 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-15 07:11:26 -0500 |
commit | ec369cd722a400130b9b754c2c965ec60beb9d56 (patch) | |
tree | 0b6f3bcaaa957983fd148548f09bd1ae4b900cfd /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py | |
parent | 1f60016f591ebd2e260e501c8c5da10c11d0c7ad (diff) |
many bugs uncovered by the PCAP injection:
1. NamedTuple constructor
2. Scappy
3. zlib for server
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py index 56657e22..ce7a630c 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py @@ -3,6 +3,7 @@ from collections import namedtuple, OrderedDict import trex_stl_stats from trex_stl_types import * +import time StreamOnPort = namedtuple('StreamOnPort', ['compiled_stream', 'metadata']) @@ -199,14 +200,13 @@ class Port(object): batch.append(cmd) # meta data for show streams - self.streams[stream.get_id()] = StreamOnPort(stream.to_json(), - Port._generate_stream_metadata(stream)) + #self.streams[stream.get_id()] = StreamOnPort(stream.to_json(), + # Port._generate_stream_metadata(stream)) rc = self.transmit_batch(batch) if not rc: return self.err(rc.err()) - # the only valid state now self.state = self.STATE_STREAMS |