2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-15 14:17:18 +00:00

xenserver: Don't complain for "bridge" network.conf value

Just silently don't start OVS daemons if /etc/xensource/network.conf
contains a value of "bridge".  This allows the init script to be called
regardless of whether OVS or bridge is configured.
This commit is contained in:
Justin Pettit
2010-06-08 12:53:46 -07:00
parent 697e8aa22f
commit c6f196a050

View File

@@ -28,8 +28,11 @@ NETWORK_MODE=$(cat /etc/xensource/network.conf)
case $NETWORK_MODE in
vswitch|openvswitch)
;;
bridge)
exit 0
;;
*)
echo "Open vSwitch disabled (/etc/xensource/network.conf is not 'openvswitch')" >&2
echo "Open vSwitch disabled (/etc/xensource/network.conf is invalid)" >&2
exit 0
;;
esac