summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-01-22 12:22:17 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-01-22 12:22:17 +0000
commit314eebce988d49c910b12349967b4e2dd46ee209 (patch)
treef601d4fa949038a6e551f2dad55f6f9c2f809521 /modules/admin-full/luasrc/model
parent7fd1bb58313bf63e383a422ba3336715b496e49f (diff)
modules/admin-full: add some additional option depends to the ra/dhcpv6 configuration page
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/ipv6.lua23
1 files changed, 17 insertions, 6 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ipv6.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ipv6.lua
index 951b607c4e..24cfa5150d 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/ipv6.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/ipv6.lua
@@ -9,20 +9,21 @@ You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-$Id$
]]--
-local m = Map("6relayd", translate("IPv6 RA and DHCPv6"),
+local m, s, o
+
+m = Map("6relayd", translate("IPv6 RA and DHCPv6"),
translate("6relayd is a lightweight router advertisement daemon and provides " ..
"stateless DHCPv6 service where size matters. It can also be used as a relay " ..
"for the aforementioned services."))
-local s = m:section(TypedSection, "server", translate("Server Settings"))
-s.addremove = true
-
+s = m:section(TypedSection, "server", translate("Server Settings"))
+s.addremove = false
+s.anonymous = true
-local o = s:option(DynamicList, "network", translate("Service Interfaces"),
+o = s:option(DynamicList, "network", translate("Service Interfaces"),
translate("Interfaces to provide services on or to relay services to."))
o.widget = "checkbox"
o.template = "cbi/network_netlist"
@@ -55,9 +56,19 @@ o = s:option(Value, "master", translate("Master Interface"),
translate("Specifies the master interface for services that are relayed."))
o.template = "cbi/network_netlist"
o.nocreate = true
+o:depends("rd", "relay")
+o:depends("dhcpv6", "relay")
+o:depends("ndp", "relay")
+o:depends("fallback_relay", "rd")
+o:depends("fallback_relay", "dhcpv6")
+o:depends("fallback_relay", "ndp")
o = s:option(Flag, "always_rewrite_dns", translate("Always announce local DNS"),
translate("Announce the local router as DNS server even in relay mode."))
+o:depends("rd", "relay")
+o:depends("dhcpv6", "relay")
+o:depends("fallback_relay", "rd")
+o:depends("fallback_relay", "dhcpv6")
o = s:option(Flag, "always_assume_default", translate("Always announce default router"),
translate("Announce as default router even if no public prefix is available."))