summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-15 12:42:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-15 12:42:24 +0000
commit19d1578077f3364a02e83f561eea0fd95d523f0b (patch)
tree8baeb8356d745586ad6ecacd24402bac5e340bff /modules/admin-full/luasrc
parent07bc8396a97ceb1a513d14f2fb9872d2174edc35 (diff)
modules/admin-full: hide 6to4 options for other protocols
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
index fd79d507ec..fdff48d493 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
@@ -250,7 +250,9 @@ if has_6in4 or has_6to4 then
ttl.datatype = "uinteger"
ttl:depends("proto", "6in4")
ttl:depends("proto", "6to4")
+end
+if has_6to4 then
advi = s:taboption("general", Value, "adv_interface", translate("Advertise IPv6 on network"))
advi.widget = "radio"
advi.exclude = arg[1]
@@ -258,9 +260,11 @@ if has_6in4 or has_6to4 then
advi.template = "cbi/network_netlist"
advi.nocreate = true
advi.nobridges = true
+ advi:depends("proto", "6to4")
advn = s:taboption("general", Value, "adv_subnet", translate("Advertised network ID"), translate("Allowed range is 1 to FFFF"))
advn.default = "1"
+ advn:depends("proto", "6to4")
function advn.write(self, section, value)
value = tonumber(value, 16) or 1