From: Ben Pfaff Date: Tue, 2 Mar 2010 21:52:33 +0000 (-0800) Subject: xenserver: Suppress error message for expected non-error condition. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5bac2a0cfea7efc27c4f06de132460390a2e920;p=openvswitch xenserver: Suppress error message for expected non-error condition. Signed-off-by: Ben Pfaff --- diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif index 77d39400..3a209f9b 100755 --- a/xenserver/etc_xensource_scripts_vif +++ b/xenserver/etc_xensource_scripts_vif @@ -172,7 +172,10 @@ remove_from_bridge() # Nothing to do ;; vswitch) - $vsctl del-port $dev + # If ovs-brcompatd is running, it might already have deleted the + # port. Use --if-exists to suppress the error that would otherwise + # arise in that case. + $vsctl -- --if-exists del-port $dev ;; esac }