From: Justin Pettit Date: Tue, 15 Dec 2009 01:44:17 +0000 (-0800) Subject: xenserver: Actually destroy VIFs by using ovs-vsctl X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c39c2868e050922b440fdc9f0ef28b5e2e36fefb;p=openvswitch xenserver: Actually destroy VIFs by using ovs-vsctl When VIFs were destroyed, they were not actually being deleted in the config database. This commit makes the appropriate ovs-vsctl commands in the 'vif' script to accomplish that. --- diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif index a9b62ff4..6905448f 100755 --- a/xenserver/etc_xensource_scripts_vif +++ b/xenserver/etc_xensource_scripts_vif @@ -121,11 +121,6 @@ remove) xenstore-rm "${HOTPLUG}/hotplug" vif=vif${DOMID}.${DEVID} logger -t scripts-vif "${vif} has been removed" - $cfg_mod -vANY:console:emer -F /etc/ovs-vswitchd.conf \ - --del-match="bridge.*.port=${vif}" \ - --del-match="vlan.${vif}.trunks=*" \ - --del-match="vlan.${vif}.tag=*" \ - --del-match="port.${vif}.[!0-9]*" -c - $service vswitch reload + $vsctl del-port $bridge $vif ;; esac