summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/console
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-15 18:15:14 +0200
committerimarom <imarom@cisco.com>2015-11-15 18:15:14 +0200
commit94b1238942da24e47fb3e689bf695e815a604eb0 (patch)
tree89617a1f037856c42963d5621f613fc4e26a1eb9 /scripts/automation/trex_control_plane/console
parent56becbc13bc2edc1fe60afb6d788357a70147a43 (diff)
added duration to the RPC server (and all the way to the DP)
*STILL NEEDS FIXING THE DP STOP SCHED MESSAGE"
Diffstat (limited to 'scripts/automation/trex_control_plane/console')
-rwxr-xr-xscripts/automation/trex_control_plane/console/parsing_opts.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/console/parsing_opts.py b/scripts/automation/trex_control_plane/console/parsing_opts.py
index c154ce24..d5c21af0 100755
--- a/scripts/automation/trex_control_plane/console/parsing_opts.py
+++ b/scripts/automation/trex_control_plane/console/parsing_opts.py
@@ -89,10 +89,13 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'],
"dest": "all_ports",
'help': "Set this flag to apply the command on all available ports"}),
DURATION: ArgumentPack(['-d'],
- {"action": "store",
+ {'action': "store",
'metavar': 'TIME',
- "type": match_time_unit,
+ 'dest': 'duration',
+ 'type': match_time_unit,
+ 'default': -1.0,
'help': "Set duration time for TRex."}),
+
FORCE: ArgumentPack(['--force'],
{"action": "store_true",
'default': False,