luci.model.uci.foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
- network:value(section[".name"])
+ if section.type and section.type == "bridge" then
+ network:value("br-"..section[".name"],section[".name"])
+ else
+ network:value(section[".name"])
+ end
end
end)
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