summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-17 09:58:32 -0500
committerimarom <imarom@cisco.com>2016-02-17 09:58:32 -0500
commita5788f0e036baa9c28eab4abb705affc89abc498 (patch)
treeaaad88256c8b8268aa8e4bab3f558d71af275655 /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
parentd9b8bb0ba62d750ab13a1cda5f33bbfcb1f30358 (diff)
stl_pcap.py example - how to transmit a pcap
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
index 84dd5090..92e9a1d6 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
@@ -26,6 +26,7 @@ TOTAL = 14
FULL_OUTPUT = 15
IPG = 16
SPEEDUP = 17
+COUNT = 18
GLOBAL_STATS = 50
PORT_STATS = 51
@@ -216,6 +217,12 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'],
'default': 1.0,
'type': float}),
+ COUNT: ArgumentPack(['-n', '--count'],
+ {'help': "How many times to perform action [default is 1, 0 means forever]",
+ 'dest': "count",
+ 'default': 1,
+ 'type': int}),
+
PORT_LIST: ArgumentPack(['--port'],
{"nargs": '+',
'dest':'ports',