diff options
author | 2016-01-31 17:44:56 +0200 | |
---|---|---|
committer | 2016-01-31 17:44:56 +0200 | |
commit | 2509553bb66732dc465ec5e2d9b710f5edabd362 (patch) | |
tree | 11449d11db52ea26d8faaaa58a7c327922414cbb /scripts/automation/trex_control_plane/common/trex_streams.py | |
parent | 3eb4112dafd4ff78ad59cc78f7a4a00fd639e56a (diff) | |
parent | 1a935f2987f2885fc8af29ed866ec0b2125ee85c (diff) |
Merge check x64 bit OS
Diffstat (limited to 'scripts/automation/trex_control_plane/common/trex_streams.py')
-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 = {} |