Make sure DataController's interfaces are deleted

This commit is contained in:
Bob Lantz
2015-02-03 15:30:16 -08:00
parent a4e933688a
commit 9483f6378f
+7 -1
View File
@@ -27,11 +27,17 @@ from mininet.log import setLogLevel, info
class DataController( Controller ):
"""Data Network Controller.
patched to avoid checkListening error"""
patched to avoid checkListening error and to delete intfs"""
def checkListening( self ):
"Ignore spurious error"
pass
def stop( self, *args, **kwargs ):
"Make sure intfs are deleted"
kwargs.update( deleteIntfs=True )
super( Controller, self ).stop( *args, **kwargs )
class MininetFacade( object ):
"""Mininet object facade that allows a single CLI to
talk to one or more networks"""