From f7519a18b92febfdb211a03a8ce60cbe216f9c72 Mon Sep 17 00:00:00 2001 From: Balaji Venkatraman Date: Tue, 14 Jan 2020 06:57:10 -0800 Subject: Python3: Migration of files under traffic-profiles/trex Change-Id: Iae16225d3d3daa4e1e9b177228fb89efe4aa5405 Signed-off-by: Balaji Venkatraman --- .../trex/profile_trex_stateless_base_class.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'resources/traffic_profiles/trex/profile_trex_stateless_base_class.py') 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() -- cgit 1.2.3-korg