From 50fd29841540bb8b1735291b72853454679e9e62 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 14 Jun 2008 01:22:12 +0000 Subject: * luci/olsr: added config-support and translations for Hna4, Hna6 and IpcConnect configuration --- .../luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'applications/luci-olsr/luasrc/model') diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index b89fb253d..67b3169a0 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 -- cgit v1.2.3