- function v.cfgsections(self)
- local sections = {}
- for i=1,#leases do
- table.insert(sections, i)
- end
- return sections
- end
-
- ip = v:option(DummyValue, "ip", translate("ipaddress"))
- function ip.cfgvalue(self, section)
- return leases[section][3]
- end
-
- mac = v:option(DummyValue, "mac", translate("macaddress"))
- function mac.cfgvalue(self, section)
- return leases[section][2]
- end