local iface="$2"
local link="dslite-$cfg"
- local mtu ttl peeraddr ip6addr tunlink
- json_get_vars mtu ttl peeraddr ip6addr tunlink
+ local mtu ttl peeraddr ip6addr tunlink zone
+ json_get_vars mtu ttl peeraddr ip6addr tunlink zone
[ -z "$peeraddr" ] && {
proto_notify_error "$cfg" "MISSING_ADDRESS"
[ -n "$tunlink" ] && json_add_string link "$tunlink"
proto_close_tunnel
+ proto_add_data
+ [ -n "$zone" ] && json_add_string zone "$zone"
+ proto_close_data
+
proto_send_update "$cfg"
}
proto_config_add_string "tunlink"
proto_config_add_int "mtu"
proto_config_add_int "ttl"
+ proto_config_add_string "zone"
}
[ -n "$INCLUDE_ONLY" ] || {