From 78570028ea72b1cb5ca28835f64057f3f030f02e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 23 Sep 2012 15:16:03 +0000 Subject: [PATCH] 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. --- functions.stp | 18 ------------------ 1 file changed, 18 deletions(-) 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} -- 2.47.3