Skip to content

Commit c6f196a

Browse files
author
Justin Pettit
committed
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.
1 parent 697e8aa commit c6f196a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

xenserver/etc_init.d_openvswitch

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ NETWORK_MODE=$(cat /etc/xensource/network.conf)
2828
case $NETWORK_MODE in
2929
vswitch|openvswitch)
3030
;;
31+
bridge)
32+
exit 0
33+
;;
3134
*)
32-
echo "Open vSwitch disabled (/etc/xensource/network.conf is not 'openvswitch')" >&2
35+
echo "Open vSwitch disabled (/etc/xensource/network.conf is invalid)" >&2
3336
exit 0
3437
;;
3538
esac

0 commit comments

Comments
 (0)