diff options
author | 2015-11-16 21:02:43 +0200 | |
---|---|---|
committer | 2015-11-16 21:02:43 +0200 | |
commit | aa9bf54e6f892168482ed647a0e67ab10b1cf34a (patch) | |
tree | 679211e3d4bfbaba46e38970b0c49f768f69e188 /scripts/automation/trex_control_plane/console | |
parent | 3b8eb91e17f8f4647b4ba9a78ba485f5c490bfac (diff) | |
parent | d16ebf0b67ae8e339fd9367c313a786a8172b1b0 (diff) |
Merge from master
Diffstat (limited to 'scripts/automation/trex_control_plane/console')
-rwxr-xr-x | scripts/automation/trex_control_plane/console/parsing_opts.py | 7 | ||||
-rwxr-xr-x | scripts/automation/trex_control_plane/console/trex_console.py | 1 |
2 files changed, 6 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, diff --git a/scripts/automation/trex_control_plane/console/trex_console.py b/scripts/automation/trex_control_plane/console/trex_console.py index 88e8dede..7cb65fa6 100755 --- a/scripts/automation/trex_control_plane/console/trex_console.py +++ b/scripts/automation/trex_control_plane/console/trex_console.py @@ -33,6 +33,7 @@ from client.trex_stateless_client import CTRexStatelessClient from common.text_opts import * from client_utils.general_utils import user_input, get_current_user import trex_status +import parsing_opts __version__ = "1.0" |