diff options
author | Ido Barnea <ibarnea@cisco.com> | 2015-12-08 06:38:42 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2015-12-08 06:38:42 +0200 |
commit | d2cd7b153eef887cbf76ada54149e67bc1057d1e (patch) | |
tree | 48347ec6f93e61f28ef9ea889d07936b194636f5 /scripts/automation | |
parent | e1afe000c56b2fbfa95f64b4fca932d5b877ac08 (diff) |
Fix to documentation of python function generate_run_cmd
Diffstat (limited to 'scripts/automation')
-rwxr-xr-x | scripts/automation/trex_control_plane/server/trex_server.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/server/trex_server.py b/scripts/automation/trex_control_plane/server/trex_server.py index 7dee89e9..b1ce54e1 100755 --- a/scripts/automation/trex_control_plane/server/trex_server.py +++ b/scripts/automation/trex_control_plane/server/trex_server.py @@ -340,11 +340,12 @@ class CTRexServer(object): Parameters ---------- - trex_cmd_options : str - Defines the exact command to run on the t-rex - Example: "-c 2 -m 0.500000 -d 100 -f cap2/sfr.yaml --nc -p -l 1000" + kwargs: dictionary + Dictionary of parameters for trex. For example: (c=1, nc=True, l_pkt_mode=3). + Notice that when sending command line parameters that has -, you need to replace it with _. + for example, to have on command line "--l-pkt-mode 3", you need to send l_pkt_mode=3 export_path : str - a full system path to which the results of the trex-run will be logged. + Full system path to which the results of the trex-run will be logged. """ if 'results_file_path' in kwargs: |