xenserver: Suppress error message for expected non-error condition.
[sliver-openvswitch.git] / xenserver / etc_xensource_scripts_vif
index 77d3940..3a209f9 100755 (executable)
@@ -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
 }