[ovs-dev] [PATCH 4 of 5] Clear stale configuration keys on boot

Ian Campbell Ian.Campbell at eu.citrix.com
Fri Oct 2 10:34:28 UTC 2009


On Thu, 2009-10-01 at 17:58 +0100, Ben Pfaff wrote:
> OK, I pushed a patch that uses /var/run/vswitch.booted.  Maybe
> this can be improved.

Sounds good.

I also managed to sneak some tabs in there by mistake while the file
generally uses spaces for indentation:

--- 

Subject: Correct whitespace in xenserver/etc_init.d_vswitch

diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch
index 9e0efe0..f618eac 100755
--- a/xenserver/etc_init.d_vswitch
+++ b/xenserver/etc_init.d_vswitch
@@ -266,11 +266,11 @@ function start {
         action "Creating empty $VSWITCHD_CONF" touch "$VSWITCHD_CONF"
     elif [ ! -e /var/run/vswitch.booted ]; then
         touch /var/run/vswitch.booted
-	/usr/bin/ovs-cfg-mod '-vANY:console:emer' -F "$VSWITCHD_CONF" \
-	    '--del-match=bridge.*' \
-	    '--del-match=port.*' \
-	    '--del-match=bonding.*' \
-	    '--del-match=iface.*'
+        /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







More information about the dev mailing list