From c6f196a050aeae603f5d68ca065a72da9a8ec894 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 8 Jun 2010 12:53:46 -0700 Subject: [PATCH] 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. --- xenserver/etc_init.d_openvswitch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index a2c26a0c..b9d66480 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -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 -- 2.30.2