aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/tools
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2020-07-30 13:25:33 +0200
committerVratko Polak <vrpolak@cisco.com>2020-07-30 12:00:01 +0000
commitc0473b40f4eb7a6da294f44c34fc0cf4d64c066f (patch)
treec3671d0f9950fb78f2befdfb85bdfd4af4f6cdeb /GPL/tools
parentfa87e0689e8712833478c9f921c1477af21aa575 (diff)
TRex stateless: Fix unidirectional tests
Change-Id: I5e101f012ae4a4383e61b274499817d146479993 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'GPL/tools')
-rw-r--r--GPL/tools/trex/trex_stateless_profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/GPL/tools/trex/trex_stateless_profile.py b/GPL/tools/trex/trex_stateless_profile.py
index 30d3793989..7d83936266 100644
--- a/GPL/tools/trex/trex_stateless_profile.py
+++ b/GPL/tools/trex/trex_stateless_profile.py
@@ -137,9 +137,9 @@ def simple_burst(
client.set_port_attr(ports=[port_0, port_1], promiscuous=True)
if isinstance(framesize, int):
last_stream_a = int((len(streams) - 2 ) / 2)
+ last_stream_b = (last_stream_a * 2)
client.add_streams(streams[0:last_stream_a], ports=[port_0])
if traffic_directions > 1:
- last_stream_b = (last_stream_a * 2)
client.add_streams(
streams[last_stream_a:last_stream_b], ports=[port_1])
elif isinstance(framesize, str):