6rd / ds-lite: make the firewall-zones of nested-protocols configurable
[openwrt.git] / package / network / ipv6 / odhcp6c / files / dhcpv6.script
index 563c9ad..851e94b 100755 (executable)
@@ -84,6 +84,7 @@ setup_interface () {
                json_add_string proto "dslite"
                json_add_string peeraddr "$AFTR_IP"
                json_add_string tunlink "$INTERFACE"
+               [ -n "$ZONE_DSLITE" ] && json_add_string zone "$ZONE_DSLITE"
                [ -n "$IFACE_DSLITE_DELEGATE" ] && json_add_boolean delegate "$IFACE_DSLITE_DELEGATE"
                json_close_object
                ubus call network add_dynamic "$(json_dump)"