This patch modifies the ifup/ifdown scripts to automatically
start the openvswitch service before ovs-vsctl is invoked thus
not making it mandatory to auto-start openvswitch on boot.
Signed-off-by: Thomas Graf <tgraf@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Tadaaki Nagao nagao@stratosphere.co.jp
Tetsuo NAKAGAWA nakagawa@mxc.nes.nec.co.jp
Thomas Goirand zigo@debian.org
+Thomas Graf tgraf@redhat.com
Thomas Lacroix thomas.lacroix@citrix.com
Todd Deshane deshantm@gmail.com
Tom Everman teverman@google.com
OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-eth"
fi
+[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start
+
case "$TYPE" in
OVSBridge)
${OTHERSCRIPT} ${CONFIG} $2
OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-eth"
fi
+[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start
+
case "$TYPE" in
OVSBridge)
ovs-vsctl -t ${TIMEOUT} -- --may-exist add-br "$DEVICE" $OVS_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA}