[ovs-dev] [PATCH 1/2] rhel: Return an exit value of 0 for ifup-ovs.

Gurucharan Shetty shettyg at nicira.com
Wed Mar 13 19:29:33 UTC 2013


When the variable "STP" is not set, the last executed command is False
while running ifup-ovs for OVSBridge. This causes the ifup-ovs
script to return an error resulting in a failure.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 rhel/etc_sysconfig_network-scripts_ifup-ovs |    1 +
 1 file changed, 1 insertion(+)

diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
index 3538721..ae095a0 100755
--- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
@@ -69,6 +69,7 @@ case "$TYPE" in
 			${OTHERSCRIPT} ${CONFIG}
 		fi
 		[ -n "${STP}" ] && ovs-vsctl --no-wait set bridge "${DEVICE}" stp_enable="${STP}"
+		exit 0
 		;;
 	OVSPort)
 		/sbin/ifup "$OVS_BRIDGE"
-- 
1.7.9.5




More information about the dev mailing list