diff options
author | imarom <imarom@cisco.com> | 2016-02-11 10:24:52 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-11 10:29:58 -0500 |
commit | e93926178b4a510bd1bec776d69cc77eb7e16aff (patch) | |
tree | c94c290ffdb75d5e8bed13c98375f584f5b5a833 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py | |
parent | b136fa9aa47aa0623683bfe733b46e28eeccd1da (diff) |
YAML support for simulator
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 | 5 |
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) |