summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-11 08:15:33 -0500
committerimarom <imarom@cisco.com>2016-02-11 08:17:20 -0500
commit268c7f125a8d51fa46a48de7104a3cfd7c50397e (patch)
treebf8d6aa8cd8d055841290f754a63b9398b9ad1cf /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
parentf11bbb2d9c4f0e8fb5bf2a7b8d9ade597fc1be05 (diff)
push support
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py22
1 files changed, 19 insertions, 3 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 968bbb7e..77970c75 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
@@ -24,6 +24,8 @@ DRY_RUN = 12
XTERM = 13
TOTAL = 14
FULL_OUTPUT = 15
+IPG = 16
+SPEEDUP = 17
GLOBAL_STATS = 50
PORT_STATS = 51
@@ -197,6 +199,19 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'],
'default': False,
'action': "store_true"}),
+ IPG: ArgumentPack(['-i', '--ipg'],
+ {'help': "IPG value in usec between packets. default will be from the pcap",
+ 'dest': "ipg_usec",
+ 'default': None,
+ 'type': float}),
+
+
+ SPEEDUP: ArgumentPack(['-s', '--speedup'],
+ {'help': "Factor to accelerate the injection. effectively means IPG = IPG / SPEEDUP",
+ 'dest': "speedup",
+ 'default': 1.0,
+ 'type': float}),
+
PORT_LIST: ArgumentPack(['--port'],
{"nargs": '+',
'dest':'ports',
@@ -217,19 +232,20 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'],
'dest': 'duration',
'type': match_time_unit,
'default': -1.0,
- 'help': "Set duration time for TRex."}),
+ 'help': "Set duration time for job."}),
FORCE: ArgumentPack(['--force'],
{"action": "store_true",
'default': False,
- 'help': "Set if you want to stop active ports before applying new TRex run on them."}),
+ 'help': "Set if you want to stop active ports before appyling command."}),
FILE_PATH: ArgumentPack(['-f'],
{'metavar': 'FILE',
'dest': 'file',
'nargs': 1,
+ 'required': True,
'type': is_valid_file,
- 'help': "File path to YAML file that describes a stream pack. "}),
+ 'help': "File path to load"}),
FILE_FROM_DB: ArgumentPack(['--db'],
{'metavar': 'LOADED_STREAM_PACK',