summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-10 13:58:41 -0500
committerimarom <imarom@cisco.com>2016-02-10 14:04:12 -0500
commitc585d631dde54732d04b2f3ee5661f15e7648719 (patch)
tree68935c5b1199c28bf0f45059f1995fccfd223fd8 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
parent48d3b77b634b911c6ba3f311d863c3da9625aeca (diff)
fixed two bugs:
1. deque race between two threads in the stats 2. max stream ID + 1 for port
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.py2
1 files changed, 1 insertions, 1 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 b1cf9ebc..de96f1ac 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
@@ -132,7 +132,7 @@ class Port(object):
# TODO: handle syncing the streams into stream_db
- self.next_available_id = long(rc.data()['max_stream_id'])
+ self.next_available_id = long(rc.data()['max_stream_id']) + 1
return self.ok()