diff --git a/mininet/node.py b/mininet/node.py index c0dcbd707f78d658f2ef0c6773a564307c2ba862..d6710863f6c5075f530d9b8445efb7a75818a80f 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -888,8 +888,10 @@ def sendCmd( self, *cmd, **kwargs ): def connected( self ): "Is the switch connected to a controller? (override this method)" - warn( "Warning: connected() needs to be implemented in" - " Switch subclass %s\n" % self.__class__ ) + # Assume that we are connected by default to whatever we need to + # be connected to. This should be overridden by any OpenFlow + # switch, but not by a standalone bridge. + debug( 'Assuming', repr( self ), 'is connected to a controller\n' ) return True def __repr__( self ): @@ -1219,7 +1221,7 @@ def start( self, controllers ): class IVSSwitch( Switch ): - """IVS virtual switch""" + "Indigo Virtual Switch" def __init__( self, name, verbose=False, **kwargs ): Switch.__init__( self, name, **kwargs )