diff options
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py | 7 | ||||
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 5 |
2 files changed, 7 insertions, 5 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 7a8965df..d0f34f48 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 @@ -43,9 +43,9 @@ class Port(object): STATES_MAP = {STATE_DOWN: "DOWN", STATE_IDLE: "IDLE", STATE_STREAMS: "IDLE", - STATE_TX: "ACTIVE", + STATE_TX: "TRANSMITTING", STATE_PAUSE: "PAUSE", - STATE_PCAP_TX : "ACTIVE"} + STATE_PCAP_TX : "TRANSMITTING"} def __init__ (self, port_id, user, comm_link, session_id, info): @@ -719,7 +719,8 @@ class Port(object): "--": "", "---": "", "link speed": "{speed} Gb/s".format(speed=info['speed']), - "status": '%s (link %s)' % (info['status'], info['link']), + "status": info['status'], + "link": info['link'], "promiscuous" : info['prom'], "flow ctrl" : info['fc'], } diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py index 783387ca..fd4ad953 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py @@ -667,6 +667,7 @@ class CTRexInfoGenerator(object): per_field_status = OrderedDict([("driver", []), ("description", []), ("link speed", []), + ("link", []), ("status", []), ("promiscuous", []), ("flow ctrl", []), @@ -1096,8 +1097,8 @@ class CPortStats(CTRexStats): def generate_stats(self): port_state = self._port_obj.get_port_state_name() if self._port_obj else "" - if port_state == "ACTIVE": - port_state = format_text('TRANSMITTING', 'green', 'bold') + if port_state == "TRANSMITTING": + port_state = format_text(port_state, 'green', 'bold') elif port_state == "PAUSE": port_state = format_text(port_state, 'magenta', 'bold') else: |