diff options
author | 2016-04-10 13:52:28 +0300 | |
---|---|---|
committer | 2016-04-10 13:52:28 +0300 | |
commit | 3c9c5ad0310f30b77565a7a5b8532fd83313ae57 (patch) | |
tree | 8682e741c29c38109b531185cefaa6406d98c4f3 /scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py | |
parent | 3cf9118efbf5382815c65dd7d28436bf55f8aa60 (diff) |
fix pkt size and speed in example stl_bi_dir_flow
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/examples/stl_bi_dir_flows1.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |