2 LuCI - Lua Configuration Interface
4 Copyright 2008 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 mh = Map("olsrd", translate("OLSR - HNA-Announcements"))
18 hna4 = mh:section(TypedSection, "Hna4", translate("Hna4"), translate("Both values must use the dotted decimal notation."))
21 hna4.template = "cbi/tblsection"
23 net4 = hna4:option(Value, "netaddr", translate("Network address"))
24 net4.datatype = "ip4addr"
25 net4.placeholder = "15.15.0.0"
26 msk4 = hna4:option(Value, "netmask", translate("Netmask"))
27 msk4.datatype = "ip4addr"
28 msk4.placeholder = "255.255.255.0"
30 hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " ..
31 "prefix must be in CIDR notation."))
34 hna6.template = "cbi/tblsection"
36 net6 = hna6:option(Value, "netaddr", translate("Network address"))
37 net6.datatype = "ip6addr"
38 net6.placeholder = "fec0:2200:106:0:0:0:0:0"
39 msk6 = hna6:option(Value, "prefix", translate("Prefix"))
40 msk6.datatype = "integer"
41 msk6.placeholder = "48"