summaryrefslogtreecommitdiff
path: root/xenserver/etc_xensource_scripts_vif
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2009-06-16 12:57:25 -0700
committerJustin Pettit <jpettit@nicira.com>2009-06-16 12:57:25 -0700
commitf304568eaa5a160ebc2031b84abc3337771612b2 (patch)
treefb08f0e4432c345441f92c064d1a1e610d3412c8 /xenserver/etc_xensource_scripts_vif
parent5eccf359391f7fe2cdb0edbaaf5680895c115218 (diff)
downloadopenvswitch-f304568eaa5a160ebc2031b84abc3337771612b2.tar.gz
xenserver: Force reload of config file after VIF deleted
When a VIF is deleted, the "vif" script modifies "/etc/ovs-vswitchd.conf". After changes are made to the config file, ovs-vswitchd should be told to reload it, but this wasn't happening. Now it does. Thanks to Natasha for catching this.
Diffstat (limited to 'xenserver/etc_xensource_scripts_vif')
-rwxr-xr-xxenserver/etc_xensource_scripts_vif5
1 files changed, 3 insertions, 2 deletions
diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif
index 35ada1f1e..aebb4ccda 100755
--- a/xenserver/etc_xensource_scripts_vif
+++ b/xenserver/etc_xensource_scripts_vif
@@ -128,9 +128,10 @@ 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}" \
+ $cfg_mod -vANY:console:emer -F /etc/ovs-vswitchd.conf \
+ --del-match="bridge.*.port=${vif}" \
--del-match="vlan.${vif}.[!0-9]*" \
--del-match="port.${vif}.[!0-9]*" -c
+ $service vswitch reload
;;
esac