Fix format strings - ports are strings, not numbers
diff --git a/drivers/cisco-sX300.py b/drivers/cisco-sX300.py
index a983499..1d62eae 100644
--- a/drivers/cisco-sX300.py
+++ b/drivers/cisco-sX300.py
@@ -244,7 +244,7 @@
read_vlan = int(self.PortGetGeneralVlan(port))
print "read_vlan is %s, tag is %d" % (read_vlan, tag)
if read_vlan != tag:
- raise IOError("Failed to move general port %d to VLAN %d - got VLAN %d instead"
+ raise IOError("Failed to move general port %s to VLAN %d - got VLAN %d instead"
% (port, tag, read_vlan))
# Add a trunk port to a specified VLAN (tag)
@@ -264,7 +264,7 @@
for vlan in read_vlans:
if vlan == tag:
return
- raise IOError("Failed to add trunk port %d to VLAN %d" % (port, tag))
+ raise IOError("Failed to add trunk port %s to VLAN %d" % (port, tag))
# Remove a trunk port from a specified VLAN (tag)
def PortRemoveTrunkFromVlan(self, port, tag):
@@ -282,7 +282,7 @@
read_vlans = self.PortGetTrunkVlanList(port)
for vlan in read_vlans:
if vlan == tag:
- raise IOError("Failed to remove trunk port %d from VLAN %d" % (port, tag))
+ raise IOError("Failed to remove trunk port %s from VLAN %d" % (port, tag))
# Get the configured VLAN tag for an general port (tag)
def PortGetGeneralVlan(self, port):