-s = m2:section(TypedSection, "static_lease", "")
-s.addremove = true
-s.anonymous = true
-s.template = "cbi/tblsection"
-
-s:option(Value, "macaddr", translate("macaddress"))
-s:option(Value, "ipaddr", translate("ipaddress"))
+for i, n in ipairs(s.children) do
+ if n ~= iface and n ~= ignore then
+ n:depends("ignore", "")
+ end
+end