summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/stl')
-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: