From: Steven Barth Date: Mon, 24 Jun 2013 12:01:03 +0000 (+0000) Subject: Make static IPv6-configuration more usable X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6d019305154136f703bd0ee7b63160445e4787d2;p=project%2Fluci.git Make static IPv6-configuration more usable --- diff --git a/protocols/core/luasrc/model/cbi/admin_network/proto_static.lua b/protocols/core/luasrc/model/cbi/admin_network/proto_static.lua index e700f47fbb..4579ebb341 100644 --- a/protocols/core/luasrc/model/cbi/admin_network/proto_static.lua +++ b/protocols/core/luasrc/model/cbi/admin_network/proto_static.lua @@ -55,18 +55,22 @@ if luci.model.network:has_ipv6() then local ip6hint = section:taboption("general", Value, "ip6hint", translate("IPv6 assignment hint"), translate("Assign prefix parts using this hexadecimal subprefix ID for this interface.")) + for i=33,64 do ip6hint:depends("ip6assign", i) end ip6addr = section:taboption("general", Value, "ip6addr", translate("IPv6 address")) ip6addr.datatype = "ip6addr" + ip6addr:depends("ip6assign", "") ip6gw = section:taboption("general", Value, "ip6gw", translate("IPv6 gateway")) ip6gw.datatype = "ip6addr" + ip6gw:depends("ip6assign", "") local ip6prefix = s:taboption("general", Value, "ip6prefix", translate("IPv6 routed prefix"), translate("Public prefix routed to this device for distribution to clients.")) ip6prefix.datatype = "ip6addr" + ip6prefix:depends("ip6assign", "") end