From 87f028d672b804df70c3860dadad3f8d34f4f0d0 Mon Sep 17 00:00:00 2001
From: Andres Toomsalu <andres@active.ee>
Date: Wed, 28 Nov 2012 14:38:29 +0200
Subject: [PATCH] Added RHEL ovs-ifup STP option handling

---
 rhel/etc_sysconfig_network-scripts_ifup-ovs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
index c427879..b6ccf56 100755
--- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
@@ -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"
-- 
1.7.5.4

