]> git.ipfire.org Git - network.git/commitdiff
stp: Remove function that switches protocols.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2012 15:16:03 +0000 (15:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2012 15:16:03 +0000 (15:16 +0000)
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

index 9c3b2a26e9a719b2036b42b493a620f3fd077320..ffaa8442f1bd47232ac161bc991ebb738c57e90d 100644 (file)
@@ -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}