From a5788f0e036baa9c28eab4abb705affc89abc498 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 17 Feb 2016 09:58:32 -0500 Subject: stl_pcap.py example - how to transmit a pcap --- .../trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py | 7 +++++++ 1 file changed, 7 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 84dd5090..92e9a1d6 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 @@ -26,6 +26,7 @@ TOTAL = 14 FULL_OUTPUT = 15 IPG = 16 SPEEDUP = 17 +COUNT = 18 GLOBAL_STATS = 50 PORT_STATS = 51 @@ -216,6 +217,12 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'], 'default': 1.0, 'type': float}), + COUNT: ArgumentPack(['-n', '--count'], + {'help': "How many times to perform action [default is 1, 0 means forever]", + 'dest': "count", + 'default': 1, + 'type': int}), + PORT_LIST: ArgumentPack(['--port'], {"nargs": '+', 'dest':'ports', -- cgit 1.2.3-korg