rhel: Set STP of a bridge during bridge creation.

applied upstream commit 32aa46891af5e173144d672e15fec7c305f9a4f3

Signed-off-by: Flavio Leitner <fbl@redhat.com>
f38
Flavio Leitner 11 years ago
parent 0455eaaccf
commit d39eba95b3

@ -78,7 +78,8 @@ case "$TYPE" in
# because it remained in the OVSDB for some reason, but it won't be up. # because it remained in the OVSDB for some reason, but it won't be up.
if check_device_down "${DEVICE}"; then if check_device_down "${DEVICE}"; then
ovs-vsctl -t ${TIMEOUT} -- --may-exist add-br "$DEVICE" $OVS_OPTIONS \ ovs-vsctl -t ${TIMEOUT} -- --may-exist add-br "$DEVICE" $OVS_OPTIONS \
${OVS_EXTRA+-- $OVS_EXTRA} ${OVS_EXTRA+-- $OVS_EXTRA} \
${STP+-- set bridge "$DEVICE" stp_enable="${STP}"}
else else
OVSBRIDGECONFIGURED="yes" OVSBRIDGECONFIGURED="yes"
fi fi
@ -102,7 +103,6 @@ case "$TYPE" in
[ "${OVSBRIDGECONFIGURED}" != "yes" ]; then [ "${OVSBRIDGECONFIGURED}" != "yes" ]; then
${OTHERSCRIPT} ${CONFIG} ${OTHERSCRIPT} ${CONFIG}
fi fi
[ -n "${STP}" ] && ovs-vsctl --no-wait set bridge "${DEVICE}" stp_enable="${STP}"
exit 0 exit 0
;; ;;
OVSPort) OVSPort)

@ -19,7 +19,7 @@
Name: openvswitch Name: openvswitch
Version: 1.11.0 Version: 1.11.0
Release: 6%{?dist} Release: 7%{?dist}
Summary: Open vSwitch daemon/database/utilities Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the # Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@ -273,6 +273,10 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/ovsdbmonitor
%changelog %changelog
* Mon Oct 28 2013 Flavio Leitner <fbl@redhat.com> - 1.11.0-7
- applied upstream commit 32aa46891af5e173144d672e15fec7c305f9a4f3
rhel: Set STP of a bridge during bridge creation.
* Mon Oct 28 2013 Flavio Leitner <fbl@redhat.com> - 1.11.0-6 * Mon Oct 28 2013 Flavio Leitner <fbl@redhat.com> - 1.11.0-6
- applied upstream commit 5b56f96aaad4a55a26576e0610fb49bde448dabe - applied upstream commit 5b56f96aaad4a55a26576e0610fb49bde448dabe
rhel: Prevent duplicate ifup calls. rhel: Prevent duplicate ifup calls.

Loading…
Cancel
Save