]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Network.pm
Fix #908: cleanup OVS ports in tap_unplug
[pve-common.git] / src / PVE / Network.pm
index 78529e108cadbd2f29ba30385909d562e6a7be53..bda20677f33a00012bc269d8ca4880c7c9a5f1b8 100644 (file)
@@ -371,6 +371,8 @@ sub tap_unplug {
     }
     
     &$cleanup_firewall_bridge($iface);
+    #cleanup old port config from any openvswitch bridge
+    eval {run_command("/usr/bin/ovs-vsctl del-port $iface", outfunc => sub {}, errfunc => sub {}) };
 }
 
 sub copy_bridge_config {