ea2f88d7947ddb3881d90cd1fb4684ee5e25a4df
[project/luci.git] / applications / luci-olsr / luasrc / model / cbi / olsr / olsrdhna.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
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
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 mh = Map("olsrd", translate("olsrd_hna", "OLSR - HNA-Ankündigungen"))
16
17
18 hna4 = mh:section(TypedSection, "Hna4")
19 hna4.addremove = true
20 hna4.anonymous = true
21 hna4.template  = "cbi/tblsection"
22
23 net4 = hna4:option(Value, "netaddr")
24 msk4 = hna4:option(Value, "netmask")
25
26
27 hna6 = mh:section(TypedSection, "Hna6")
28 hna6.addremove = true
29 hna6.anonymous = true
30 hna6.template  = "cbi/tblsection"
31
32 net6 = hna6:option(Value, "netaddr")
33 msk6 = hna6:option(Value, "prefix")
34
35
36 return mh