. /usr/lib/network/functions
+# Read network configuration.
+network_config_read
+
zone=${1}
assert isset zone
# Do this after the bridge has been added.
(
sleep 2
- stp_bridge_set_protocol ${bridge} ${STP_MODE}
+ stp_bridge_set_protocol "${zone}" "${STP_MODE}"
) &
# Tell mstpd that STP has to be enabled/disabled.