diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-14 01:22:12 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-14 01:22:12 +0000 |
commit | 50fd29841540bb8b1735291b72853454679e9e62 (patch) | |
tree | d40fb7cbad6e81058eaf9bf5a513c925e1b7ffed /applications/luci-olsr/luasrc/model/cbi | |
parent | 8138a605045358fe9f5c1c901eb555908ca626fa (diff) |
* luci/olsr: added config-support and translations for Hna4, Hna6 and IpcConnect configuration
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index b89fb253d7..67b3169a0b 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -91,4 +91,26 @@ for k, v in pairs(luci.fs.dir("/usr/lib")) do end end -return m
\ No newline at end of file + +for i, sect in ipairs({ "Hna4", "Hna6" }) do + hna = m:section(TypedSection, sect) + hna.addremove = true + hna.anonymous = true + + net = hna:option(Value, "NetAddr") + msk = hna:option(Value, "Prefix") +end + + +ipc = m:section(NamedSection, "IpcConnect") +conns = ipc:option(Value, "MaxConnections") +conns.isInteger = true + +nets = ipc:option(Value, "Net") +nets.optional = true + +hosts = ipc:option(Value, "Host") +hosts.optional = true + + +return m |