fi
# XXX maybe we can add some hashing to identify a configuration again
- config_write $(zone_dir ${zone})/configs/${HOOK}.$(uuid) ${HOOK_SETTINGS}
+ zone_config_settings_write "${zone}" "${HOOK}.$(uuid)" ${HOOK_SETTINGS}
exit ${EXIT_OK}
}
exit ${EXIT_ERROR}
fi
- config_read $(zone_dir ${zone})/configs/${config}
+ zone_config_settings_read "${zone}" "${config}" ${HOOK_SETTINGS}
ip_address_add ${zone} ${ADDRESS}/${PREFIX}
exit ${EXIT_ERROR}
fi
- config_read $(zone_dir ${zone})/configs/${config}
+ zone_config_settings_read "${zone}" "${config}" ${HOOK_SETTINGS}
ip_address_del ${zone} ${ADDRESS}/${PREFIX}
error "Zone '${zone}' doesn't exist."
exit ${EXIT_ERROR}
fi
-
- config_read $(zone_dir ${zone})/configs/${config}
+
+ zone_config_settings_read "${zone}" "${config}" ${HOOK_SETTINGS}
local status
if zone_has_ip ${zone} ${ADDRESS}/${PREFIX}; then