Call super(deleteIntfs)

Maybe this is better - maybe not. ;-p
This commit is contained in:
Bob Lantz
2014-12-04 07:36:53 -08:00
parent 643c9f912f
commit d754a7ceea
2 changed files with 8 additions and 11 deletions
+4 -2
View File
@@ -46,10 +46,12 @@ class LinuxBridge( Switch ):
self.cmd( 'brctl addif', self, i )
self.cmd( 'ifconfig', self, 'up' )
def stop( self ):
"Stop Linux bridge"
def stop( self, deleteIntfs=True ):
"""Stop Linux bridge
deleteIntfs: delete interfaces? (True)"""
self.cmd( 'ifconfig', self, 'down' )
self.cmd( 'brctl delbr', self )
super( LinuxBridge, self ).stop( deleteIntfs )
def dpctl( self, *args ):
"Run brctl command"