diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-13 01:00:11 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-13 01:00:11 +0000 |
commit | e898a0dec6d087216914590bbac57b8086f5cad3 (patch) | |
tree | 944bb81c420328ff86c33ce20d3373dae26b6690 /applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua | |
parent | b1e746541290712f3dd3241f84d844c700235bf0 (diff) |
* luci/app-olsr: first round of olsr improvements:
- implement new uci config format
- moved hna announcements and plugins to separate pages
- made all sections dynamic
- added all known plugin options as additional fields
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua new file mode 100644 index 0000000000..b784ea1436 --- /dev/null +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua @@ -0,0 +1,27 @@ +--[[ +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$ +]]-- + +mh = Map("olsrd", "OLSR - HNA Announcements") + +for i, sect in ipairs({ "Hna4", "Hna6" }) do + hna = mh:section(TypedSection, sect) + hna.addremove = true + hna.anonymous = true + hna.template = "cbi/tblsection" + + net = hna:option(Value, "NetAddr") + msk = hna:option(Value, "Prefix") +end + +return mh |