summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/examples
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/examples')
-rw-r--r--scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows.py6
-rw-r--r--scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows.py b/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows.py
index ff16d397..d4661b1a 100644
--- a/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows.py
+++ b/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows.py
@@ -32,7 +32,7 @@ def create_pkt (size, direction):
base = Ether()/IP()/UDP()
- pad = max(0, len(base)) * 'x'
+ pad = max(0, size-len(base)) * 'x'
return STLPktBuilder(pkt = base/pad,
vm = vm)
@@ -73,8 +73,8 @@ def simple_burst ():
c.clear_stats()
# choose rate and start traffic for 10 seconds on 5 mpps
- print("Running 5 Mpps on ports 0, 1 for 10 seconds...")
- c.start(ports = [0, 1], mult = "5mpps", duration = 10)
+ print("Running 100 Mbps on ports 0, 1 for 10 seconds...")
+ c.start(ports = [0, 1], mult = "100mbps", duration = 10)
# block until done
c.wait_on_traffic(ports = [0, 1])
diff --git a/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py b/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py
index 6e08a0fa..c9cab8e9 100644
--- a/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py
+++ b/scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py
@@ -32,7 +32,7 @@ def create_pkt (size, direction):
base = Ether()/IP()/UDP()
- pad = max(0, len(base)) * 'x'
+ pad = max(0, size-len(base)) * 'x'
return STLPktBuilder(pkt = base/pad,
vm = vm)