summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/examples
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-04-10 13:52:28 +0300
committerHanoh Haim <hhaim@cisco.com>2016-04-10 13:52:28 +0300
commit3c9c5ad0310f30b77565a7a5b8532fd83313ae57 (patch)
tree8682e741c29c38109b531185cefaa6406d98c4f3 /scripts/automation/trex_control_plane/stl/examples
parent3cf9118efbf5382815c65dd7d28436bf55f8aa60 (diff)
fix pkt size and speed in example stl_bi_dir_flow
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)