rhel: Automatically start openvswitch service before bringing an ovs interface up...
[cascardo/ovs.git] / rhel / etc_sysconfig_network-scripts_ifup-ovs
index c427879..61b0af9 100755 (executable)
@@ -34,6 +34,8 @@ if [ ! -x ${OTHERSCRIPT} ]; then
        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}