typo
authorYaroslav Brustinov <[email protected]>
Sun, 23 Oct 2016 08:15:48 +0000 (10:15 +0200)
committerYaroslav Brustinov <[email protected]>
Fri, 28 Oct 2016 12:38:33 +0000 (14:38 +0200)
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py

index 4a094c5..7a8965d 100644 (file)
@@ -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: