Print the port number too when printing out port details
Change-Id: I8ba7b95d642688481cdfcc6bbd19af3ff178eb36
diff --git a/admin.py b/admin.py
index 5879764..a123d33 100644
--- a/admin.py
+++ b/admin.py
@@ -47,14 +47,15 @@
switch[1])
def dump_port(port):
- print "port_id:%d name:%s switch_id:%d locked:%s mode:%s base_vlan_id:%d current_vlan_id:%d" % (
+ print "port_id:%d name:%s switch_id:%d locked:%s mode:%s base_vlan_id:%d current_vlan_id:%d number:%d" % (
int(port[0]),
port[1],
int(port[2]),
("yes" if port[3] is True else "no"),
("trunk" if port[4] is True else "access"),
int(port[5]),
- int(port[6]))
+ int(port[6]),
+ int(port[7]))
def dump_vlan(vlan):
print "vlan_id:%d name:%s tag:%d is_base_vlan:%s, creation_time:%s" % (