From aaef3f95683bfa1574537c543e4ffc86afb0480f Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 25 Feb 2016 09:54:45 -0500 Subject: port attributes - promiscuous and etc. --- .../stl/trex_stl_lib/utils/parsing_opts.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py') 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], -- cgit 1.2.3-korg