2 LuCI - Lua Configuration Interface
4 Copyright 2013 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
15 local m = Map("6relayd", translate("IPv6 RA and DHCPv6"),
16 translate("6relayd is a lightweight router advertisement daemon and provides " ..
17 "stateless DHCPv6 service where size matters. It can also be used as a relay " ..
18 "for the aforementioned services."))
20 local s = m:section(TypedSection, "server", translate("Server Settings"))
25 local o = s:option(DynamicList, "network", translate("Service Interfaces"),
26 translate("Interfaces to provide services on or to relay services to."))
28 o.template = "cbi/network_netlist"
34 o = s:option(ListValue, "rd", translate("Router Advertisement-Service"))
35 o:value("", translate("disabled"))
36 o:value("server", translate("server mode"))
37 o:value("relay", translate("relay mode"))
39 o = s:option(ListValue, "dhcpv6", translate("DHCPv6-Service"))
40 o:value("", translate("disabled"))
41 o:value("server", translate("server mode"))
42 o:value("relay", translate("relay mode"))
44 o = s:option(ListValue, "ndp", translate("NDP-Proxy"))
45 o:value("", translate("disabled"))
46 o:value("relay", translate("relay mode"))
48 o = s:option(MultiValue, "fallback_relay", translate("Fallback to relay"),
49 translate("Relay services from master to server interfaces when there is no public prefix available."))
50 o:value("rd", translate("Router Advertisement"))
51 o:value("dhcpv6", translate("DHCPV6"))
52 o:value("ndp", translate("NDP-Proxy"))
54 o = s:option(Value, "master", translate("Master Interface"),
55 translate("Specifies the master interface for services that are relayed."))
56 o.template = "cbi/network_netlist"
59 o = s:option(Flag, "always_rewrite_dns", translate("Always announce local DNS"),
60 translate("Announce the local router as DNS server even in relay mode."))
62 o = s:option(Flag, "always_assume_default", translate("Always announce default router"),
63 translate("Announce as default router even if no public prefix is available."))
64 o:depends("rd", "server")