summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-10-23 10:15:48 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-10-28 14:38:33 +0200
commit42e01ddfe6e4f863fd36837684f7a7b17554f5d8 (patch)
tree8bd90a414e2524859416024352e5a3530e739ecd
parent815de471009a006096065717f8d35f73421df31a (diff)
typo
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
index 4a094c5d..7a8965df 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
@@ -251,7 +251,7 @@ class Port(object):
self.next_available_id = int(rc.data()['max_stream_id']) + 1
# attributes
- self.attr = ['attr']
+ self.attr = rc.data()['attr']
if 'speed' in rc.data():
self.info['speed'] = rc.data()['speed'] // 1000
@@ -653,6 +653,7 @@ class Port(object):
info = dict(self.info)
info['status'] = self.get_port_state_name()
+
if 'link' in self.attr:
info['link'] = 'UP' if self.attr['link']['up'] else 'DOWN'
else: