From 775616cd5a8b06c115b5faaf499cbc74fcb8dcc2 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Wed, 3 Aug 2016 16:50:51 +0300 Subject: add -m bpsl1 --- .../stl/trex_stl_lib/utils/parsing_opts.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'scripts') 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 af7e90c1..cfe8a93b 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 @@ -79,14 +79,23 @@ def match_time_unit(val): "-d 10m : in min \n" "-d 1h : in hours") + match_multiplier_help = """Multiplier should be passed in the following format: - [number][ | bps | kbps | mbps | gbps | pps | kpps | mpps | %% ]. + [number][ | bps | kbps | mbps | gbps | pps | kpps | mpps | %% ]. + no suffix will provide an absoulute factor and percentage will provide a percentage of the line rate. examples - '-m 10', '-m 10kbps', '-m 10mpps', '-m 23%%' - '-m 23%%' : is 23%% L1 bandwidth - '-m 23mbps' : is 23mbps in L2 bandwidth (including FCS+4) + '-m 10', + '-m 10kbps', + '-m 10kbpsl1', + '-m 10mpps', + '-m 23%% ' + + '-m 23%%' : is 23%% L1 bandwidth + '-m 23mbps': is 23mbps in L2 bandwidth (including FCS+4) + '-m 23mbpsl1': is 23mbps in L1 bandwidth + """ -- cgit 1.2.3-korg