This is not needed anymore and was unsafe because
it did not check if mstpd was running and was aware of
the bridge.
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}