diff options
author | 2016-03-09 11:04:08 +0200 | |
---|---|---|
committer | 2016-03-09 11:04:08 +0200 | |
commit | 3f747bcf1d6cb5654bbd0b0e54fa56bc7ad90e69 (patch) | |
tree | 6e22c8b384699666535f23e7cb21d9e74b9be2f5 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | 344df4618f219758a6fd005e2ea3e3d1056b5f4b (diff) |
regression: stl updates
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_std.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_std.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_std.py index e0b25b1d..c4cb5d01 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_std.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_std.py @@ -48,7 +48,6 @@ def stl_map_ports (client, ports = None): tx_port = tx_pkts[pkts] table['map'][port] = tx_port - unmapped = list(ports) while len(unmapped) > 0: port_a = unmapped.pop(0) @@ -57,7 +56,9 @@ def stl_map_ports (client, ports = None): # if unknown - add to the unknown list if port_b == None: table['unknown'].append(port_a) - + # self-loop, due to bug? + elif port_a == port_b: + continue # bi-directional ports elif (table['map'][port_b] == port_a): unmapped.remove(port_b) |