luci-proto-ipv6: use "Automatic" instead as "automatic" as translation label
[project/luci.git] / protocols / luci-proto-ipv6 / luasrc / model / cbi / admin_network / proto_dslite.lua
1 -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
2 -- Copyright 2013 Steven Barth <steven@midlink.org>
3 -- Licensed to the public under the Apache License 2.0.
4
5 local map, section, net = ...
6
7 local peeraddr, ip6addr
8 local tunlink, defaultroute, metric, ttl, mtu
9
10
11
12
13 peeraddr = section:taboption("general", Value, "peeraddr",
14         translate("DS-Lite AFTR address"))
15
16 peeraddr.rmempty  = false
17 peeraddr.datatype = "or(hostname,ip6addr)"
18
19 ip6addr = section:taboption("general", Value, "ip6addr",
20         translate("Local IPv6 address"),
21         translate("Leave empty to use the current WAN address"))
22
23 ip6addr.datatype = "ip6addr"
24
25
26 tunlink = section:taboption("advanced", DynamicList, "tunlink", translate("Tunnel Link"))
27 tunlink.template = "cbi/network_netlist"
28 tunlink.nocreate = true
29
30
31 defaultroute = section:taboption("advanced", Flag, "defaultroute",
32         translate("Default gateway"),
33         translate("If unchecked, no default route is configured"))
34
35 defaultroute.default = defaultroute.enabled
36
37
38 metric = section:taboption("advanced", Value, "metric",
39         translate("Use gateway metric"))
40
41 metric.placeholder = "0"
42 metric.datatype    = "uinteger"
43 metric:depends("defaultroute", defaultroute.enabled)
44
45
46 ttl = section:taboption("advanced", Value, "ttl", translate("Use TTL on tunnel interface"))
47 ttl.placeholder = "64"
48 ttl.datatype    = "range(1,255)"
49
50
51 mtu = section:taboption("advanced", Value, "mtu", translate("Use MTU on tunnel interface"))
52 mtu.placeholder = "1280"
53 mtu.datatype    = "max(9200)"