Added RHEL ovs-ifup STP option handling
authorAndres Toomsalu <andres@active.ee>
Wed, 28 Nov 2012 12:38:29 +0000 (14:38 +0200)
committerBen Pfaff <blp@nicira.com>
Sat, 8 Dec 2012 18:47:55 +0000 (10:47 -0800)
Signed-off-by: Andres Toomsalu <andres@active.ee>
Signed-off-by: Ben Pfaff <blp@nicira.com>
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"