X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftraffic_profiles%2Ftrex%2Fprofile_trex_stateless_base_class.py;fp=resources%2Ftraffic_profiles%2Ftrex%2Fprofile_trex_stateless_base_class.py;h=a3736796eb9defd298504f77d69822e4ba14b6c9;hp=6576cb7bdf951b5484d635442138cb09f4b23fdb;hb=f7519a18b92febfdb211a03a8ce60cbe216f9c72;hpb=e8e433bca76e6b7b065637d54cba9069278f6ab3 diff --git a/resources/traffic_profiles/trex/profile_trex_stateless_base_class.py b/resources/traffic_profiles/trex/profile_trex_stateless_base_class.py index 6576cb7bdf..a3736796eb 100755 --- a/resources/traffic_profiles/trex/profile_trex_stateless_base_class.py +++ b/resources/traffic_profiles/trex/profile_trex_stateless_base_class.py @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2020 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -153,13 +153,15 @@ class TrafficStreamsBaseClass: # Streams for latency measurement: # Direction 0 --> 1 lat_stream1 = STLStream( - packet=pkt_lat_a, flow_stats=STLFlowLatencyStats(pg_id=0), + packet=pkt_lat_a, + flow_stats=STLFlowLatencyStats(pg_id=0), mode=STLTXCont(pps=9000) ) # Direction 1 --> 0 # second traffic stream with a phase of 10ns (inter-stream gap) lat_stream2 = STLStream( - packet=pkt_lat_b, isg=10.0, + packet=pkt_lat_b, + isg=10.0, flow_stats=STLFlowLatencyStats(pg_id=1), mode=STLTXCont(pps=9000) ) @@ -185,11 +187,13 @@ class TrafficStreamsBaseClass: # Create the streams: stream1.append(STLStream( - packet=pkt_a, isg=stream[u"isg"], + packet=pkt_a, + isg=stream[u"isg"], mode=STLTXCont(pps=stream[u"pps"])) ) stream2.append(STLStream( - packet=pkt_b, isg=stream[u"isg"], + packet=pkt_b, + isg=stream[u"isg"], mode=STLTXCont(pps=stream[u"pps"])) ) streams = list()