warn -> debug in connected; change IVS class comment
This commit is contained in:
+5
-3
@@ -888,8 +888,10 @@ class Switch( Node ):
|
|||||||
|
|
||||||
def connected( self ):
|
def connected( self ):
|
||||||
"Is the switch connected to a controller? (override this method)"
|
"Is the switch connected to a controller? (override this method)"
|
||||||
warn( "Warning: connected() needs to be implemented in"
|
# Assume that we are connected by default to whatever we need to
|
||||||
" Switch subclass %s\n" % self.__class__ )
|
# 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
|
return True
|
||||||
|
|
||||||
def __repr__( self ):
|
def __repr__( self ):
|
||||||
@@ -1219,7 +1221,7 @@ class OVSBridge( OVSSwitch ):
|
|||||||
|
|
||||||
|
|
||||||
class IVSSwitch( Switch ):
|
class IVSSwitch( Switch ):
|
||||||
"""IVS virtual switch"""
|
"Indigo Virtual Switch"
|
||||||
|
|
||||||
def __init__( self, name, verbose=False, **kwargs ):
|
def __init__( self, name, verbose=False, **kwargs ):
|
||||||
Switch.__init__( self, name, **kwargs )
|
Switch.__init__( self, name, **kwargs )
|
||||||
|
|||||||
Reference in New Issue
Block a user