- TAG=$(cli_get_val ${1})
- ;;
- *)
- warning "Unknown argument '${1}'"
- ;;
- esac
- shift
- done
-
- local port="${PARENT_DEVICE}${VLAN_PORT_INTERFIX}${TAG}"
-
- port_settings_write "${port}" ${HOOK_SETTINGS}
-
- exit ${EXIT_OK}
-}
-
-hook_edit() {
- local port=${1}
- assert isset port
- shift
-
- port_settings_read "${port}" ${HOOK_SETTINGS}
-
- while [ $# -gt 0 ]; do
- case "${1}" in
- --address=*)
- ADDRESS=$(cli_get_val ${1})