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;h=1decc40c822457b2bb123847bb5115e179edb409;hp=a6cb97485a1eb45186b8fea9d211173de058c441;hb=f90655a9efa6c97a8901ce5095bc64b0c7518739;hpb=6721e7f09aa95bff6622068332a3f56afad9c87b 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 a6cb97485a..1decc40c82 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) 2017 Cisco and/or its affiliates. +# Copyright (c) 2019 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: @@ -21,7 +21,7 @@ import struct from random import choice from string import letters -from trex_stl_lib.api import * +from trex.stl.api import * class TrafficStreamsBaseClass(object): @@ -130,20 +130,18 @@ class TrafficStreamsBaseClass(object): # Direction 0 --> 1 pkt_a = STLPktBuilder( - pkt=base_pkt_a / self._gen_payload(payload_len), - vm=vm1) + pkt=base_pkt_a / self._gen_payload(payload_len), vm=vm1) # Direction 1 --> 0 pkt_b = STLPktBuilder( - pkt=base_pkt_b / self._gen_payload(payload_len), - vm=vm2) + pkt=base_pkt_b / self._gen_payload(payload_len), vm=vm2) # Packets for latency measurement: # Direction 0 --> 1 pkt_lat_a = STLPktBuilder( - pkt=base_pkt_a / self._gen_payload(payload_len)) + pkt=base_pkt_a / self._gen_payload(payload_len), vm=vm1) # Direction 1 --> 0 pkt_lat_b = STLPktBuilder( - pkt=base_pkt_b / self._gen_payload(payload_len)) + pkt=base_pkt_b / self._gen_payload(payload_len), vm=vm2) # Create the streams: # Direction 0 --> 1