diff options
author | 2016-02-25 09:54:45 -0500 | |
---|---|---|
committer | 2016-02-25 09:57:23 -0500 | |
commit | aaef3f95683bfa1574537c543e4ffc86afb0480f (patch) | |
tree | 01bf5d21786fb59d13338a75b644eb0fa9a5f20d /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils | |
parent | ed7c04b5d7d5bb15aa13144e62caa786e73f7d05 (diff) |
port attributes - promiscuous and etc.
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py | 21 |
1 files changed, 21 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 92e9a1d6..0c70801f 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 @@ -27,6 +27,9 @@ FULL_OUTPUT = 15 IPG = 16 SPEEDUP = 17 COUNT = 18 +PROMISCUOUS = 19 +NO_PROMISCUOUS = 20 +PROMISCUOUS_SWITCH = 21 GLOBAL_STATS = 50 PORT_STATS = 51 @@ -223,6 +226,19 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'], 'default': 1, 'type': int}), + PROMISCUOUS: ArgumentPack(['--prom'], + {'help': "sets port promiscuous on", + 'dest': "prom", + 'default': None, + 'action': "store_true"}), + + NO_PROMISCUOUS: ArgumentPack(['--no_prom'], + {'help': "sets port promiscuous off", + 'dest': "prom", + 'default': None, + 'action': "store_false"}), + + PORT_LIST: ArgumentPack(['--port'], {"nargs": '+', 'dest':'ports', @@ -305,6 +321,11 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'], 'default': []}), + # promiscuous + PROMISCUOUS_SWITCH: ArgumentGroup(MUTEX, [PROMISCUOUS, + NO_PROMISCUOUS], + {'required': False}), + # advanced options PORT_LIST_WITH_ALL: ArgumentGroup(MUTEX, [PORT_LIST, ALL_PORTS], |