From 064655d58f903a3bb77091b7cfe4860a0a44d520 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 23 Sep 2012 19:43:15 +0000 Subject: [PATCH] stp: Correctly set protocol version. --- functions.stp | 2 +- helpers/bridge-stp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/functions.stp b/functions.stp index a23d15fb..433fb34c 100644 --- a/functions.stp +++ b/functions.stp @@ -107,7 +107,7 @@ function stp_bridge_set_protocol() { mode="${STP_DEFAULT_MODE}" fi - mstpctl setforcevers ${bridge} ${mode} + cmd mstpctl setforcevers ${bridge} ${mode} assert [ $? -eq 0 ] } diff --git a/helpers/bridge-stp b/helpers/bridge-stp index fb8240f9..186f287a 100755 --- a/helpers/bridge-stp +++ b/helpers/bridge-stp @@ -59,6 +59,13 @@ case "${STP_MODE}" in fi fi + # Set the right protocol that should be used. + # Do this after the bridge has been added. + ( + sleep 2 + stp_bridge_set_protocol ${bridge} ${STP_MODE} + ) & + # Tell mstpd that STP has to be enabled/disabled. case "${action}" in start) -- 2.47.3