From d4dc81145d339e9cae7991f528b472d4c4178913 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 23 Nov 2016 12:00:01 +0200 Subject: merge issues Signed-off-by: imarom --- .../trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (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 f20bdad6..8a667dc0 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 @@ -57,7 +57,8 @@ RETRIES = 37 RX_FILTER_MODE = 38 SOURCE_PORT = 39 PING_IPV4 = 40 -PKT_SIZE = 41 +PING_COUNT = 41 +PKT_SIZE = 42 GLOBAL_STATS = 50 PORT_STATS = 51 @@ -431,6 +432,12 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'], 'required': True, 'type': check_ipv4_addr}), + PING_COUNT: ArgumentPack(['-n', '--count'], + {'help': 'How many times to ping [default is 5]', + 'dest': 'count', + 'default': 5, + 'type': int}), + PKT_SIZE: ArgumentPack(['-s'], {'dest':'pkt_size', 'help': 'packet size to use', -- cgit 1.2.3-korg