diff --git a/mininet/node.py b/mininet/node.py index 0a1907b..25accc5 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -893,7 +893,7 @@ class Switch( Node ): "Return correctly formatted dpid from dpid or switch name (s1 -> 1)" if dpid: # Remove any colons and make sure it's a good hex number - dpid = dpid.translate( None, ':' ) + dpid = dpid.replace( ':', '' ) assert len( dpid ) <= self.dpidLen and int( dpid, 16 ) >= 0 else: # Use hex of the first number in the switch name