Add port names to probe_switches() output
Change-Id: Ib1ff816ad5cbc6876e5dc500817444150d335bcd
diff --git a/util.py b/util.py
index 619aa05..ca044ed 100644
--- a/util.py
+++ b/util.py
@@ -24,7 +24,9 @@
s.switch_connect(config.switches[switch_name].username,
config.switches[switch_name].password,
config.switches[switch_name].enable_password)
- ret[switch_name] = 'Found %d ports' % len(s.switch_get_port_names())
+ ret[switch_name] = 'Found %d ports: ' % len(s.switch_get_port_names())
+ for name in s.switch_get_port_names():
+ ret[switch_name] += '%s ' % name
s.switch_disconnect()
del(s)
return ret