summaryrefslogtreecommitdiffhomepage
path: root/protocols
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-05-23 10:14:14 +0000
committerSteven Barth <steven@midlink.org>2013-05-23 10:14:14 +0000
commit029631ec489b2d28a9e4b3a6ef4f2de9e999b956 (patch)
treee9bef8f0e1caf617d8df47885760b36d2c1b1de9 /protocols
parentd5d63e2cc5fedb69ab0f51d71ddfda9741b35b94 (diff)
Make static IPv6-configuration more usable
Diffstat (limited to 'protocols')
-rw-r--r--protocols/core/luasrc/model/cbi/admin_network/proto_static.lua4
1 files changed, 4 insertions, 0 deletions
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 25e9b3af3..338c0b7d8 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