summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-10-25 07:44:24 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-10-28 14:38:34 +0200
commit528f62bb50ca111f387b56b280f3a4b271f8ace3 (patch)
treeddc5534dc74c87defed1f18422555cafa11329c1 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
parent6cd8432f6fa549c35cc96a5446d0e17eb2c5dd40 (diff)
console "stats --ps" move link status to another line
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py5
1 files changed, 3 insertions, 2 deletions
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: