From 42e01ddfe6e4f863fd36837684f7a7b17554f5d8 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Sun, 23 Oct 2016 10:15:48 +0200 Subject: typo Signed-off-by: Yaroslav Brustinov --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib') 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: -- cgit