summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
diff options
context:
space:
mode:
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.py5
1 files changed, 4 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 e319e7d3..56657e22 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
@@ -187,10 +187,13 @@ class Port(object):
batch = []
for stream in streams_list:
+ stream_json = stream.to_json()
+ stream_json['next_stream_id'] = stream.get_next_id()
+
params = {"handler": self.handler,
"port_id": self.port_id,
"stream_id": stream.get_id(),
- "stream": stream.to_json()}
+ "stream": stream_json}
cmd = RpcCmdData('add_stream', params)
batch.append(cmd)