STP_MAXAGE=20
STP_PRIORITY=512
-function hook_check() {
+function hook_check_settings() {
assert ismac MAC
assert isbool STP
assert isoneof STP_MODE stp rstp
local zone=${1}
assert isset zone
- zone_settings_read "${zone}" ${HOOK_SETTINGS}
+ zone_settings_read "${zone}"
# Create the bridge if it does not already exist.
if ! device_exists "${zone}"; then