summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-11-27 00:11:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-11-27 00:11:26 +0000
commit9ac4ba5fa760b1180c53c5dc22f2fcadb08c5bda (patch)
tree4c55d4c60a683d707b856fcc1f593eef4bdd35ad /applications/luci-olsr/luasrc/model/cbi
parentddccf4732816a64a86d108fa07bf5815673c0680 (diff)
applications/luci-olsr: fix handling of hna6 announcements
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi')
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua27
1 files changed, 18 insertions, 9 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
index 632a4d4a4b..ea2f88d794 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
@@ -14,14 +14,23 @@ $Id$
mh = Map("olsrd", translate("olsrd_hna", "OLSR - HNA-Ankündigungen"))
-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, "netmask")
-end
+
+hna4 = mh:section(TypedSection, "Hna4")
+hna4.addremove = true
+hna4.anonymous = true
+hna4.template = "cbi/tblsection"
+
+net4 = hna4:option(Value, "netaddr")
+msk4 = hna4:option(Value, "netmask")
+
+
+hna6 = mh:section(TypedSection, "Hna6")
+hna6.addremove = true
+hna6.anonymous = true
+hna6.template = "cbi/tblsection"
+
+net6 = hna6:option(Value, "netaddr")
+msk6 = hna6:option(Value, "prefix")
+
return mh