Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1179: Switch MRR to multiple trials
[csit.git]
/
resources
/
tools
/
trex
/
trex_stateless_profile.py
diff --git
a/resources/tools/trex/trex_stateless_profile.py
b/resources/tools/trex/trex_stateless_profile.py
index
311c85f
..
e1e56d9
100755
(executable)
--- a/
resources/tools/trex/trex_stateless_profile.py
+++ b/
resources/tools/trex/trex_stateless_profile.py
@@
-22,7
+22,7
@@
import sys
import argparse
import json
import argparse
import json
-sys.path.insert(0, "/opt/trex-core-2.3
4
/scripts/automation/"
+sys.path.insert(0, "/opt/trex-core-2.3
5
/scripts/automation/"
"trex_control_plane/stl/")
from trex_stl_lib.api import *
"trex_control_plane/stl/")
from trex_stl_lib.api import *
@@
-87,9
+87,9
@@
def simple_burst(profile_file, duration, framesize, rate, warmup_time, port_0,
:param async_start: Start the traffic and exit.
:type profile_file: str
:type framesize: int or str
:param async_start: Start the traffic and exit.
:type profile_file: str
:type framesize: int or str
- :type duration:
in
t
+ :type duration:
floa
t
:type rate: str
:type rate: str
- :type warmup_time:
in
t
+ :type warmup_time:
floa
t
:type port_0: int
:type port_1: int
:type latency: boo;
:type port_0: int
:type port_1: int
:type latency: boo;
@@
-247,7
+247,7
@@
def main():
help="Python traffic profile.")
parser.add_argument("-d", "--duration",
required=True,
help="Python traffic profile.")
parser.add_argument("-d", "--duration",
required=True,
- type=
in
t,
+ type=
floa
t,
help="Duration of traffic run.")
parser.add_argument("-s", "--frame_size",
required=True,
help="Duration of traffic run.")
parser.add_argument("-s", "--frame_size",
required=True,
@@
-256,8
+256,8
@@
def main():
required=True,
help="Traffic rate with included units (%, pps).")
parser.add_argument("-w", "--warmup_time",
required=True,
help="Traffic rate with included units (%, pps).")
parser.add_argument("-w", "--warmup_time",
- type=
in
t,
- default=5,
+ type=
floa
t,
+ default=5
.0
,
help="Traffic warm-up time in seconds, 0 = disable.")
parser.add_argument("--port_0",
required=True,
help="Traffic warm-up time in seconds, 0 = disable.")
parser.add_argument("--port_0",
required=True,
@@
-283,12
+283,12
@@
def main():
framesize = args.frame_size
simple_burst(profile_file=args.profile,
framesize = args.frame_size
simple_burst(profile_file=args.profile,
- duration=
int(args.duration)
,
+ duration=
args.duration
,
framesize=framesize,
rate=args.rate,
framesize=framesize,
rate=args.rate,
- warmup_time=
int(args.warmup_time)
,
- port_0=
int(args.port_0)
,
- port_1=
int(args.port_1)
,
+ warmup_time=
args.warmup_time
,
+ port_0=
args.port_0
,
+ port_1=
args.port_1
,
latency=args.latency,
async_start=args.async)
latency=args.latency,
async_start=args.async)