diff options
author | 2016-01-10 04:13:39 -0500 | |
---|---|---|
committer | 2016-01-10 04:13:39 -0500 | |
commit | 773e9d1c67c314aca8f6f88f676b4dd2d777863d (patch) | |
tree | 99f664f967787f8ab4a35aa0d28dfd3c4e10ce41 /scripts/automation/trex_control_plane/client_utils/parsing_opts.py | |
parent | 505d0dcd8b094cc11a20986f4417facc0a7a9dd7 (diff) | |
parent | 859a72101c94a26296efcc713882b472caf6ff8e (diff) |
Merge branch 'master' of https://github.com/danklein10/trex-core into danklein10-master
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils/parsing_opts.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/client_utils/parsing_opts.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/client_utils/parsing_opts.py b/scripts/automation/trex_control_plane/client_utils/parsing_opts.py index 5cb06604..43c97a1d 100755 --- a/scripts/automation/trex_control_plane/client_utils/parsing_opts.py +++ b/scripts/automation/trex_control_plane/client_utils/parsing_opts.py @@ -23,12 +23,19 @@ FORCE = 11 DRY_RUN = 12 XTERM = 13 TOTAL = 14 +FULL_OUTPUT = 15 GLOBAL_STATS = 50 PORT_STATS = 51 PORT_STATUS = 52 STATS_MASK = 53 +STREAMS_MASK = 60 +# ALL_STREAMS = 61 +# STREAM_LIST_WITH_ALL = 62 + + + # list of ArgumentGroup types MUTEX = 1 @@ -221,6 +228,10 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'], 'default': False, 'help': "Starts TUI in xterm window"}), + FULL_OUTPUT: ArgumentPack(['--full'], + {'action': 'store_true', + 'help': "Prompt full info in a JSON format"}), + GLOBAL_STATS: ArgumentPack(['-g'], {'action': 'store_true', 'help': "Fetch only global statistics"}), @@ -233,6 +244,14 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'], {'action': 'store_true', 'help': "Fetch only port status data"}), + STREAMS_MASK: ArgumentPack(['--streams'], + {"nargs": '+', + 'dest':'streams', + 'metavar': 'STREAMS', + 'type': int, + 'help': "A list of stream IDs to query about. Default: analyze all streams", + 'default': []}), + # advanced options PORT_LIST_WITH_ALL: ArgumentGroup(MUTEX, [PORT_LIST, |