6rd / ds-lite: make the firewall-zones of nested-protocols configurable
[openwrt.git] / package / network / ipv6 / odhcp6c / files / dhcpv6.script
index 563c9ada0d03756727f2172804ee60eb6d4d6dd3..851e94be918ed3df644ab43dee79f8f1b1c90e9e 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)"