summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-11 10:22:06 +0200
committerimarom <imarom@cisco.com>2016-12-11 10:22:06 +0200
commit20bb36572e006147d1ee6767b46d803bdb0926df (patch)
tree8296bc2ffbeb147fd56e4d252d892ab591926832 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
parent0074ceeed2aa9ecafbbd8a71dc42d4bee1b34ffb (diff)
few tweaks
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
index fd41491e..fe691fb0 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
@@ -3878,18 +3878,19 @@ class STLClient(object):
return "{0}(read-only)>".format(prefix)
elif self.is_all_ports_acquired():
+
p = prefix
if self.get_service_enabled_ports():
if self.get_service_enabled_ports() == self.get_acquired_ports():
p += '(service)'
else:
- p += '(service: {0})'.format(self.get_service_enabled_ports())
+ p += '(service: {0})'.format(', '.join(map(str, self.get_service_enabled_ports())))
return "{0}>".format(p)
else:
- return "{0} {1}>".format(prefix, self.get_acquired_ports())
+ return "{0} (ports: {1})>".format(prefix, ', '.join(map(str, self.get_acquired_ports())))