xenserver: Clear stale configuration keys on boot
authorIan Campbell <ian.campbell@citrix.com>
Wed, 30 Sep 2009 10:57:23 +0000 (11:57 +0100)
committerBen Pfaff <blp@nicira.com>
Thu, 1 Oct 2009 16:53:11 +0000 (09:53 -0700)
xenserver/etc_init.d_vswitch

index e63a001aba62c55fa2737fa9d6c2ab3f4aeaae1e..637718d702258e191333bf8412427e5287eea837 100755 (executable)
@@ -264,6 +264,12 @@ function start {
     if [ ! -e "$VSWITCHD_CONF" ]; then
         warning "$VSWITCHD_CONF does not exist"
         action "Creating empty $VSWITCHD_CONF" touch "$VSWITCHD_CONF"
+    else
+       /usr/bin/ovs-cfg-mod '-vANY:console:emer' -F "$VSWITCHD_CONF" \
+           '--del-match=bridge.*' \
+           '--del-match=port.*' \
+           '--del-match=bonding.*' \
+           '--del-match=iface.*'
     fi
 
     start_vswitchd