X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=GPL%2Ftools%2Ftrex%2Ftrex_stateless_profile.py;h=7d83936266fe422179de7c66c4fc210037e36940;hp=cda68d01d89563e35d6b6d380ae33898bd87f4e0;hb=a40195bdda6ec06af8479cfe7d3b3e11d4c9778f;hpb=250d14332d04569f01117e614a25de290e629800 diff --git a/GPL/tools/trex/trex_stateless_profile.py b/GPL/tools/trex/trex_stateless_profile.py index cda68d01d8..7d83936266 100644 --- a/GPL/tools/trex/trex_stateless_profile.py +++ b/GPL/tools/trex/trex_stateless_profile.py @@ -137,12 +137,11 @@ 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]) - print(last_stream_a, last_stream_b, streams) elif isinstance(framesize, str): client.add_streams(streams[0:3], ports=[port_0]) if traffic_directions > 1: