X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=GPL%2Ftraffic_profiles%2Ftrex%2Ftrex-stl-ethip6-ip6dst1000000-rnd.py;fp=GPL%2Ftraffic_profiles%2Ftrex%2Ftrex-stl-2n-ethip6-ip6dst1000000.py;h=a372e1ae3b2c6463fa9c7647f3dcafda6c2e796f;hp=dbe8f76032beb6f52b7919a6310fc5073e90c6c1;hb=ad98ea70cf435d104b6a4f0090575e137660da77;hpb=216c68cc8b010642c4de21673b7d8e18006767e2 diff --git a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst1000000.py b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000-rnd.py similarity index 91% rename from GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst1000000.py rename to GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000-rnd.py index dbe8f76032..a372e1ae3b 100644 --- a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst1000000.py +++ b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000-rnd.py @@ -85,20 +85,22 @@ class TrafficStreams(TrafficStreamsBaseClass): base_pkt_b = ( Ether() / IPv6( - src=self.p2_src_start_ip, - dst=self.p2_dst_start_ip + src=self.p2_src_start_ip, + dst=self.p2_dst_start_ip ) ) # Direction 0 --> 1 vm1 = STLScVmRaw( [ - STLVmFlowVar( + STLVmFlowVarRepeatableRandom( name=u"ipv6_dst", min_value=base_p1, max_value=base_p1 + count_p1, size=8, - op=u"inc" + seed=1, + # Cycle length. TRex does not allow any higher value. + limit=(2**24 - 1) ), STLVmWrFlowVar( fv_name=u"ipv6_dst", @@ -110,12 +112,13 @@ class TrafficStreams(TrafficStreamsBaseClass): # Direction 1 --> 0 vm2 = STLScVmRaw( [ - STLVmFlowVar( + STLVmFlowVarRepeatableRandom( name=u"ipv6_dst", min_value=base_p2, max_value=base_p2 + count_p2, size=8, - op=u"inc" + seed=2, + limit=(2**24 - 1) ), STLVmWrFlowVar( fv_name=u"ipv6_dst",