rhel: Return an exit value of 0 for ifup-ovs.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 13 Mar 2013 18:17:21 +0000 (11:17 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 13 Mar 2013 19:45:27 +0000 (12:45 -0700)
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@nicira.com>
rhel/etc_sysconfig_network-scripts_ifup-ovs

index 3538721..ae095a0 100755 (executable)
@@ -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"