summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2017-01-19 13:30:48 +0200
committerimarom <imarom@cisco.com>2017-01-19 13:30:48 +0200
commit641fed03d8e407b6dca94f5280b9a1b4c768f601 (patch)
tree732c49428240ee103cd5b2d075fe714c648f2129 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
parent951b09ef1b892594840f091f861f11ad274541ec (diff)
fine tune
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
index c632ad7c..5435619a 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
@@ -3003,7 +3003,8 @@ class STLClient(object):
limit - limit how many packets will be written
:returns:
- the new capture_id
+ returns a dictionary containing
+ {'id: <new_id>, 'ts': <starting timestamp>}
:raises:
+ :exe:'STLError'
@@ -3036,7 +3037,7 @@ class STLClient(object):
if not rc:
raise STLError(rc)
- return rc.data()['capture_id']
+ return {'id': rc.data()['capture_id'], 'ts': rc.data()['ts']}
@@ -3070,7 +3071,7 @@ class STLClient(object):
@__api_check(True)
- def stop_capture (self, capture_id, output_filename):
+ def stop_capture (self, capture_id, output_filename = None):
"""
Stops an active capture