2008-09-13 01:00:11 +00:00
|
|
|
--[[
|
|
|
|
LuCI - Lua Configuration Interface
|
|
|
|
|
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
]]--
|
|
|
|
|
2009-10-31 15:54:11 +00:00
|
|
|
mh = Map("olsrd", translate("OLSR - HNA-Announcements"))
|
2008-09-13 01:00:11 +00:00
|
|
|
|
2008-11-27 00:11:26 +00:00
|
|
|
|
2011-05-17 17:00:21 +00:00
|
|
|
hna4 = mh:section(TypedSection, "Hna4", translate("Hna4"), translate("Both values must use the dotted decimal notation."))
|
2008-11-27 00:11:26 +00:00
|
|
|
hna4.addremove = true
|
|
|
|
hna4.anonymous = true
|
|
|
|
hna4.template = "cbi/tblsection"
|
|
|
|
|
2010-07-01 11:42:16 +00:00
|
|
|
net4 = hna4:option(Value, "netaddr", translate("Network address"))
|
2011-05-17 17:00:21 +00:00
|
|
|
net4.datatype = "ip4addr"
|
|
|
|
net4.placeholder = "15.15.0.0"
|
2010-07-01 11:42:16 +00:00
|
|
|
msk4 = hna4:option(Value, "netmask", translate("Netmask"))
|
2011-05-17 17:00:21 +00:00
|
|
|
msk4.datatype = "ip4addr"
|
|
|
|
msk4.placeholder = "255.255.255.0"
|
2008-11-27 00:11:26 +00:00
|
|
|
|
2011-05-17 17:00:21 +00:00
|
|
|
hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " ..
|
|
|
|
"prefix must be in CIDR notation."))
|
2008-11-27 00:11:26 +00:00
|
|
|
hna6.addremove = true
|
|
|
|
hna6.anonymous = true
|
|
|
|
hna6.template = "cbi/tblsection"
|
|
|
|
|
2010-07-01 11:42:16 +00:00
|
|
|
net6 = hna6:option(Value, "netaddr", translate("Network address"))
|
2011-05-17 17:00:21 +00:00
|
|
|
net6.datatype = "ip6addr"
|
|
|
|
net6.placeholder = "fec0:2200:106:0:0:0:0:0"
|
2010-07-01 11:42:16 +00:00
|
|
|
msk6 = hna6:option(Value, "prefix", translate("Prefix"))
|
2011-05-17 23:06:12 +00:00
|
|
|
msk6.datatype = "range(0,128)"
|
2011-05-17 17:00:21 +00:00
|
|
|
msk6.placeholder = "48"
|
2008-11-27 00:11:26 +00:00
|
|
|
|
2008-09-13 01:00:11 +00:00
|
|
|
|
|
|
|
return mh
|