Globally reduce copyright headers
[project/luci.git] / applications / luci-app-olsr / luasrc / model / cbi / olsr / olsrdhna6.lua
1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
3 -- Licensed to the public under the Apache License 2.0.
4
5 local uci = require "luci.model.uci".cursor()
6
7 mh = Map("olsrd6", translate("OLSR - HNA6-Announcements"), translate("Hosts in a OLSR routed network can announce connecitivity " ..
8         "to external networks using HNA6 messages."))
9
10         hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " ..
11                 "prefix must be in CIDR notation."))
12         hna6.addremove = true
13         hna6.anonymous = true
14         hna6.template  = "cbi/tblsection"
15
16         net6 = hna6:option(Value, "netaddr", translate("Network address"))
17         net6.datatype = "ip6addr"
18         net6.placeholder = "fec0:2200:106:0:0:0:0:0"
19         net6.default = "fec0:2200:106:0:0:0:0:0"
20         msk6 = hna6:option(Value, "prefix", translate("Prefix"))
21         msk6.datatype = "range(0,128)"
22         msk6.placeholder = "128"
23         msk6.default = "128"
24 return mh
25