Upgrade to T-rex v2.34 66/9366/14
authorTibor Frank <tifrank@cisco.com>
Fri, 10 Nov 2017 08:06:32 +0000 (09:06 +0100)
committerPeter Mikus <pmikus@cisco.com>
Tue, 2 Jan 2018 07:47:12 +0000 (07:47 +0000)
Change-Id: I7e18ba8beaac507af376a859821ef7d571cbff80
Signed-off-by: Tibor Frank <tifrank@cisco.com>
25 files changed:
resources/libraries/python/TrafficGenerator.py
resources/tools/trex/trex_installer.sh
resources/tools/trex/trex_server_info.py
resources/tools/trex/trex_stateless_profile.py
resources/tools/trex/trex_stateless_stop.py
resources/traffic_profiles/trex/trex-sl-2n-ethip4-ip4src253.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4dst100.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4dst1000.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4dst10000.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4dst100000.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4dst1000000.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4dst253.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4dst253_l3fwd.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4src253.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-ip4src254.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-macsrc100ip4src100.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-macsrc100kip4src100k.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-macsrc10kip4src10k.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-macsrc500kdst500k.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-macsrc50kdst50k.py
resources/traffic_profiles/trex/trex-sl-3n-ethip4-macsrc5kdst5k.py
resources/traffic_profiles/trex/trex-sl-3n-ethip6-ip6dst10000.py
resources/traffic_profiles/trex/trex-sl-3n-ethip6-ip6dst100000.py
resources/traffic_profiles/trex/trex-sl-3n-ethip6-ip6dst1000000.py
resources/traffic_profiles/trex/trex-sl-3n-ethip6-ip6src253.py

index 1680438..88adcc4 100644 (file)
@@ -184,19 +184,17 @@ class TrafficGenerator(object):
         self._node = tg_node
 
         if tg_node['subtype'] == NodeSubTypeTG.TREX:
-            trex_path = "/opt/trex-core-2.29"
+            trex_path = "/opt/trex-core-2.34"
 
             ssh = SSH()
             ssh.connect(tg_node)
 
-            (ret, stdout, stderr) = ssh.exec_command(
+            (ret, _, _) = ssh.exec_command(
                 "sudo -E sh -c '{}/resources/tools/trex/"
                 "trex_installer.sh'".format(Constants.REMOTE_FW_DIR),
                 timeout=1800)
             if int(ret) != 0:
-                logger.error('TRex installation failed: {0}'.format(
-                    stdout + stderr))
-                raise RuntimeError('Installation of TG failed')
+                raise RuntimeError('TRex installation failed.')
 
             if1_pci = topo.get_interface_pci_addr(tg_node, tg_if1)
             if2_pci = topo.get_interface_pci_addr(tg_node, tg_if2)
@@ -229,7 +227,7 @@ class TrafficGenerator(object):
             if1_adj_mac_hex = "0x"+if1_adj_mac.replace(":", ",0x")
             if2_adj_mac_hex = "0x"+if2_adj_mac.replace(":", ",0x")
 
-            (ret, stdout, stderr) = ssh.exec_command(
+            (ret, _, _) = ssh.exec_command(
                 "sudo sh -c 'cat << EOF > /etc/trex_cfg.yaml\n"
                 "- port_limit      : 2\n"
                 "  version         : 2\n"
@@ -244,8 +242,6 @@ class TrafficGenerator(object):
                         if1_adj_mac_hex, if1_mac_hex,
                         if2_adj_mac_hex, if2_mac_hex))
             if int(ret) != 0:
-                logger.error("failed to create t-rex config: {}"\
-                .format(stdout + stderr))
                 raise RuntimeError('trex config generation error')
 
             max_startup_retries = 3
@@ -255,20 +251,20 @@ class TrafficGenerator(object):
                     "sh -c 'pgrep t-rex && sudo pkill t-rex && sleep 3'")
 
                 # configure T-rex
-                (ret, stdout, stderr) = ssh.exec_command(
+                (ret, _, _) = ssh.exec_command(
                     "sh -c 'cd {0}/scripts/ && sudo ./trex-cfg'"\
                     .format(trex_path))
                 if int(ret) != 0:
-                    logger.error('trex-cfg failed: {0}'.format(stdout + stderr))
                     raise RuntimeError('trex-cfg failed')
 
                 # start T-rex
                 (ret, _, _) = ssh.exec_command(
                     "sh -c 'cd {0}/scripts/ && "
-                    "sudo nohup ./t-rex-64 -i -c 7 --iom 0 > /dev/null 2>&1 &'"
-                    "> /dev/null"\
+                    "sudo nohup ./t-rex-64 -i -c 7 --iom 0 > /tmp/trex.log "
+                    "2>&1 &' > /dev/null"\
                     .format(trex_path))
                 if int(ret) != 0:
+                    ssh.exec_command("sh -c 'cat /tmp/trex.log'")
                     raise RuntimeError('t-rex-64 startup failed')
 
                 # get T-rex server info
@@ -301,10 +297,9 @@ class TrafficGenerator(object):
         if node['subtype'] == NodeSubTypeTG.TREX:
             ssh = SSH()
             ssh.connect(node)
-            (ret, stdout, stderr) = ssh.exec_command(
+            (ret, _, _) = ssh.exec_command(
                 "sh -c 'sudo pkill t-rex && sleep 3'")
             if int(ret) != 0:
-                logger.error('pkill t-rex failed: {0}'.format(stdout + stderr))
                 raise RuntimeError('pkill t-rex failed')
 
     @staticmethod
index c9a41ce..1e9b4ba 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-TREX_VERSION="2.29"
+TREX_VERSION="2.34"
 
 TREX_DOWNLOAD_REPO="https://github.com/cisco-system-traffic-generator/trex-core/archive/"
 TREX_DOWNLOAD_PACKAGE="v${TREX_VERSION}.zip"
@@ -34,4 +34,3 @@ test $? -eq 0 || exit 1
 
 cd ${TREX_INSTALL_DIR}/linux_dpdk/ && ./b configure && ./b build || exit 1
 cd ${TREX_INSTALL_DIR}/scripts/ko/src && make && make install || exit 1
-
index 9a98637..ff1350d 100755 (executable)
@@ -28,7 +28,7 @@ Functionality:
 
 import sys
 
-sys.path.insert(0, "/opt/trex-core-2.29/scripts/automation/"+\
+sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/"+\
                    "trex_control_plane/stl/")
 from trex_stl_lib.api import *
 
@@ -72,5 +72,6 @@ def main():
 
     get_server_system_info()
 
+
 if __name__ == "__main__":
     main()
index a3072cf..311c85f 100755 (executable)
@@ -22,7 +22,7 @@ import sys
 import argparse
 import json
 
-sys.path.insert(0, "/opt/trex-core-2.29/scripts/automation/"
+sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/"
                    "trex_control_plane/stl/")
 
 from trex_stl_lib.api import *
@@ -109,11 +109,9 @@ def simple_burst(profile_file, duration, framesize, rate, warmup_time, port_0,
         print("### Profile file:\n{}".format(profile_file))
         profile = STLProfile.load(profile_file, direction=0, port_id=0,
                                   framesize=framesize)
-        print("\n### Profiles ###\n")
-        print(profile.dump_to_yaml())
         streams = profile.get_streams()
-    except STLError:
-        print("Error while loading profile '{0}'\n".format(profile_file))
+    except STLError as err:
+        print("Error while loading profile '{0}' {1}".format(profile_file, err))
         sys.exit(1)
 
     try:
index 0a2aabf..67dd2d2 100755 (executable)
@@ -29,7 +29,7 @@ Functionality:
 import sys
 import json
 
-sys.path.insert(0, "/opt/trex-core-2.29/scripts/automation/"+\
+sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/"+\
                    "trex_control_plane/stl/")
 from trex_stl_lib.api import *
 
@@ -87,5 +87,6 @@ def main():
 
     stop_all_traffic_streams()
 
+
 if __name__ == "__main__":
     main()
index f9a030b..ee521dd 100755 (executable)
@@ -69,16 +69,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="src",
                                        min_value=self.p2_src_start_ip,
                                        max_value=self.p2_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 86f423a..4ace396 100755 (executable)
@@ -71,16 +71,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="dst",
                                        min_value=self.p2_dst_start_ip,
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 569c063..5f0d1ce 100755 (executable)
@@ -71,16 +71,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="dst",
                                        min_value=self.p2_dst_start_ip,
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 373076f..c562a8e 100755 (executable)
@@ -71,16 +71,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="dst",
                                        min_value=self.p2_dst_start_ip,
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 3b27e9a..da873f8 100755 (executable)
@@ -71,16 +71,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="dst",
                                        min_value=self.p2_dst_start_ip,
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 076951b..a75e175 100755 (executable)
@@ -71,16 +71,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="dst",
                                        min_value=self.p2_dst_start_ip,
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 684af82..adbf9fb 100755 (executable)
@@ -71,16 +71,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="dst",
                                        min_value=self.p2_dst_start_ip,
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 55a7994..f8cae51 100755 (executable)
@@ -71,16 +71,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="dst",
                                        min_value=self.p2_dst_start_ip,
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index f9a030b..ee521dd 100755 (executable)
@@ -69,16 +69,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="src",
                                        min_value=self.p2_src_start_ip,
                                        max_value=self.p2_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 0a2a4a4..55238da 100755 (executable)
@@ -69,16 +69,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="src",
                                        min_value=self.p2_src_start_ip,
                                        max_value=self.p2_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 1b5ba3f..f8bf3ae 100755 (executable)
@@ -85,8 +85,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="mac_src",
                                        min_value=0,
@@ -98,8 +97,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p2_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 5a4916b..6f97800 100755 (executable)
@@ -85,8 +85,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="mac_src",
                                        min_value=0,
@@ -98,8 +97,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p2_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 1b5bcab..d5b795d 100755 (executable)
@@ -85,8 +85,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="mac_src",
                                        min_value=0,
@@ -98,8 +97,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p2_src_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="src")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 7094788..72d0b13 100755 (executable)
@@ -105,8 +105,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="ip_dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="mac_src",
                                        min_value=0,
@@ -128,8 +127,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="ip_dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index b8c9ca1..f5822b4 100755 (executable)
@@ -105,8 +105,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="ip_dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="mac_src",
                                        min_value=0,
@@ -128,8 +127,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="ip_dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index b51dd88..30a25cb 100755 (executable)
@@ -105,8 +105,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p1_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="ip_dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="mac_src",
                                        min_value=0,
@@ -128,8 +127,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        max_value=self.p2_dst_end_ip,
                                        size=4, op="inc"),
                           STLVmWrFlowVar(fv_name="ip_dst", pkt_offset="IP.dst"),
-                          STLVmFixIpv4(offset="IP")],
-                         split_by_field="dst")
+                          STLVmFixIpv4(offset="IP")])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index 7a85ddf..757e903 100755 (executable)
@@ -73,8 +73,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_dst",
                                          pkt_offset="IPv6.dst",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_dst")
+                                         offset_fixup=8)])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="ipv6_dst",
                                        min_value=base_p2,
@@ -82,8 +81,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_dst",
                                          pkt_offset="IPv6.dst",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_dst")
+                                         offset_fixup=8)])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index b1948c9..fd252d4 100755 (executable)
@@ -73,8 +73,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_dst",
                                          pkt_offset="IPv6.dst",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_dst")
+                                         offset_fixup=8)])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="ipv6_dst",
                                        min_value=base_p2,
@@ -82,8 +81,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_dst",
                                          pkt_offset="IPv6.dst",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_dst")
+                                         offset_fixup=8)])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index ace0dac..700dc74 100755 (executable)
@@ -73,8 +73,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_dst",
                                          pkt_offset="IPv6.dst",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_dst")
+                                         offset_fixup=8)])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="ipv6_dst",
                                        min_value=base_p2,
@@ -82,8 +81,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_dst",
                                          pkt_offset="IPv6.dst",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_dst")
+                                         offset_fixup=8)])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 
index be900ce..eb306bf 100755 (executable)
@@ -73,8 +73,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_src",
                                          pkt_offset="IPv6.src",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_src")
+                                         offset_fixup=8)])
         # Direction 1 --> 0
         vm2 = STLScVmRaw([STLVmFlowVar(name="ipv6_src",
                                        min_value=base_p2,
@@ -82,8 +81,7 @@ class TrafficStreams(TrafficStreamsBaseClass):
                                        size=8, op="inc"),
                           STLVmWrFlowVar(fv_name="ipv6_src",
                                          pkt_offset="IPv6.src",
-                                         offset_fixup=8)],
-                         split_by_field="ipv6_src")
+                                         offset_fixup=8)])
 
         return base_pkt_a, base_pkt_b, vm1, vm2
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.