xenserver: Actually destroy VIFs by using ovs-vsctl
authorJustin Pettit <jpettit@nicira.com>
Tue, 15 Dec 2009 01:44:17 +0000 (17:44 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 15 Dec 2009 01:44:17 +0000 (17:44 -0800)
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.

xenserver/etc_xensource_scripts_vif

index a9b62ff..6905448 100755 (executable)
@@ -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