From 26873712908fcfb26ee5310c961846b79f0a8249 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 2 Mar 2016 16:01:08 +0200 Subject: port mapping - hardening --- scripts/automation/trex_control_plane/stl/examples/stl_imix.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/examples/stl_imix.py') diff --git a/scripts/automation/trex_control_plane/stl/examples/stl_imix.py b/scripts/automation/trex_control_plane/stl/examples/stl_imix.py index e3c01ca9..cc7691a3 100644 --- a/scripts/automation/trex_control_plane/stl/examples/stl_imix.py +++ b/scripts/automation/trex_control_plane/stl/examples/stl_imix.py @@ -30,9 +30,10 @@ def imix_test (): # map ports - identify the routes table = stl_map_ports(c) - print "Mapped ports to sides {0} <--> {1}".format(table['dir'][0], table['dir'][1]) - dir_0 = table['dir'][0] - dir_1 = table['dir'][1] + dir_0 = [x[0] for x in table['bi']] + dir_1 = [x[1] for x in table['bi']] + + print "Mapped ports to sides {0} <--> {1}".format(dir_0, dir_1) # load IMIX profile profile = STLProfile.load_py('../../../../stl/imix.py') -- cgit