diff options
author | 2016-01-31 16:07:53 +0200 | |
---|---|---|
committer | 2016-01-31 16:07:53 +0200 | |
commit | 1a935f2987f2885fc8af29ed866ec0b2125ee85c (patch) | |
tree | 1650ca92e0d1d23ff7b976650e25aa95135154ff /scripts/automation/trex_control_plane/common | |
parent | d4b2ae7ddbaae8660ddaff710bf4a5459ff0657f (diff) |
add driver for Ubuntu 14.04.3, remove seconds from regression start time at HTML report, HLTAPI improvements
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/trex_streams.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/common/trex_streams.py b/scripts/automation/trex_control_plane/common/trex_streams.py index 0d77b457..caeaa8cf 100755 --- a/scripts/automation/trex_control_plane/common/trex_streams.py +++ b/scripts/automation/trex_control_plane/common/trex_streams.py @@ -415,7 +415,8 @@ class STLStream(object): self_start = True, isg = 0.0, rx_stats = None, - next_stream_id = -1): + next_stream_id = -1, + stream_id = None): # type checking if not isinstance(mode, STLTXMode): @@ -437,7 +438,7 @@ class STLStream(object): raise STLError("continuous stream cannot have a next stream ID") # use a random 31 bit for ID - self.stream_id = random.getrandbits(31) + self.stream_id = stream_id if stream_id is not None else random.getrandbits(31) self.fields = {} |