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.
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