Added RHEL ovs-ifup STP option handling
[sliver-openvswitch.git] / rhel / etc_sysconfig_network-scripts_ifup-ovs
index c427879..b6ccf56 100755 (executable)
@@ -47,6 +47,7 @@ case "$TYPE" in
                if [ "${OVSBOOTPROTO}" != "dhcp" ] && [ -z "${OVSINTF}" ]; then
                        ${OTHERSCRIPT} ${CONFIG}
                fi
+               [ -n "${STP}" ] && ovs-vsctl --no-wait set bridge "${DEVICE}" stp_enable="${STP}"
                ;;
        OVSPort)
                /sbin/ifup "$OVS_BRIDGE"