From: Michael Tremer Date: Sun, 23 Sep 2012 15:16:03 +0000 (+0000) Subject: stp: Remove function that switches protocols. X-Git-Tag: 005~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78570028ea72b1cb5ca28835f64057f3f030f02e;p=network.git stp: Remove function that switches protocols. This is not needed anymore and was unsafe because it did not check if mstpd was running and was aware of the bridge. --- diff --git a/functions.stp b/functions.stp index 9c3b2a26..ffaa8442 100644 --- a/functions.stp +++ b/functions.stp @@ -78,24 +78,6 @@ function stp_get_name() { return ${EXIT_OK} } -function stp_bridge_set_protocol() { - local bridge=${1} - assert isset bridge - - local mode=${2} - assert isset mode - - if ! listmatch ${mode} ${STP_ALLOWED_MODES}; then - log WARNING "Unknown protocol version: ${mode}." - log WARNING "Using default mode." - - mode="${STP_DEFAULT_MODE}" - fi - - mstpctl setforcevers ${bridge} ${mode} - assert [ $? -eq 0 ] -} - function stp_bridge_get_protocol() { local bridge=${1}