From: Ben Pfaff Date: Thu, 21 May 2009 18:11:08 +0000 (-0700) Subject: xenserver: Make vif script log its changes to vswitchd.conf. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f899caac3842a0754815d86994e150b568d7b272;p=openvswitch xenserver: Make vif script log its changes to vswitchd.conf. This makes debugging easier. --- diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif index 3a8d264a..01039a34 100755 --- a/xenserver/etc_xensource_scripts_vif +++ b/xenserver/etc_xensource_scripts_vif @@ -90,7 +90,7 @@ add_to_bridge() --del-match="bridge.*.port=$vif" \ --del-match="vlan.$vif.[!0-9]*" \ --add="bridge.$bridge.port=$vif" \ - $vid + $vid -c $service vswitch reload ${IP} link set "${vif}" up || logger -t scripts-vif "Failed to ip link set ${vif} up" @@ -123,6 +123,6 @@ remove) logger -t scripts-vif "${vif} has been removed" $cfg_mod -vANY:console:emer -F /etc/vswitchd.conf \ --del-match="bridge.*.port=${vif}" \ - --del-match="vlan.${vif}.[!0-9]*" + --del-match="vlan.${vif}.[!0-9]*" -c ;; esac