Delete leftover TAP interface from OVS with datapath=user

fixes #199
This commit is contained in:
Bob Lantz authored and Brian O'Connor committed 2013-09-11 12:00:12 -07:00
1 parent 896c4cbccc
commit 765d126ee9
1 file changed
+2
+2
View File
@@ -1050,6 +1050,8 @@ class OVSSwitch( Switch ):
def stop( self ):
"Terminate OVS switch."
self.cmd( 'ovs-vsctl del-br', self )
if self.datapath == 'user':
self.cmd( 'ip link del', self )
self.deleteIntfs()
OVSKernelSwitch = OVSSwitch