import argparse
import json
-sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/"
+sys.path.insert(0, "/opt/trex-core-2.35/scripts/automation/"
"trex_control_plane/stl/")
from trex_stl_lib.api import *
:param async_start: Start the traffic and exit.
:type profile_file: str
:type framesize: int or str
- :type duration: int
+ :type duration: float
:type rate: str
- :type warmup_time: int
+ :type warmup_time: float
:type port_0: int
:type port_1: int
:type latency: boo;
help="Python traffic profile.")
parser.add_argument("-d", "--duration",
required=True,
- type=int,
+ type=float,
help="Duration of traffic run.")
parser.add_argument("-s", "--frame_size",
required=True,
required=True,
help="Traffic rate with included units (%, pps).")
parser.add_argument("-w", "--warmup_time",
- type=int,
- default=5,
+ type=float,
+ default=5.0,
help="Traffic warm-up time in seconds, 0 = disable.")
parser.add_argument("--port_0",
required=True,
framesize = args.frame_size
simple_burst(profile_file=args.profile,
- duration=int(args.duration),
+ duration=args.duration,
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)