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:
@@ -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
|
||||
|
Reference in New Issue
Block a user