Make sure DataController's interfaces are deleted
This commit is contained in:
@@ -27,11 +27,17 @@ from mininet.log import setLogLevel, info
|
|||||||
|
|
||||||
class DataController( Controller ):
|
class DataController( Controller ):
|
||||||
"""Data Network Controller.
|
"""Data Network Controller.
|
||||||
patched to avoid checkListening error"""
|
patched to avoid checkListening error and to delete intfs"""
|
||||||
|
|
||||||
def checkListening( self ):
|
def checkListening( self ):
|
||||||
"Ignore spurious error"
|
"Ignore spurious error"
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def stop( self, *args, **kwargs ):
|
||||||
|
"Make sure intfs are deleted"
|
||||||
|
kwargs.update( deleteIntfs=True )
|
||||||
|
super( Controller, self ).stop( *args, **kwargs )
|
||||||
|
|
||||||
class MininetFacade( object ):
|
class MininetFacade( object ):
|
||||||
"""Mininet object facade that allows a single CLI to
|
"""Mininet object facade that allows a single CLI to
|
||||||
talk to one or more networks"""
|
talk to one or more networks"""
|
||||||
|
|||||||
Reference in New Issue
Block a user