Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fa87e06
)
TRex stateless: Fix unidirectional tests
11/28111/2
author
Vratko Polak
<vrpolak@cisco.com>
Thu, 30 Jul 2020 11:25:33 +0000
(13:25 +0200)
committer
Vratko Polak
<vrpolak@cisco.com>
Thu, 30 Jul 2020 12:00:01 +0000
(12:00 +0000)
Change-Id: I5e101f012ae4a4383e61b274499817d146479993
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
GPL/tools/trex/trex_stateless_profile.py
patch
|
blob
|
history
diff --git
a/GPL/tools/trex/trex_stateless_profile.py
b/GPL/tools/trex/trex_stateless_profile.py
index
30d3793
..
7d83936
100644
(file)
--- 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):