From 8bb8b7c09cee818246312a637d846be491e171d3 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 15 Jul 2008 16:28:29 +0000 Subject: modules/admin-mini: Added DHCP page modules/admin-full: Added static leases configuration to DHCP page --- modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules/admin-full/luasrc/model') diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua index b22f7354ae..e9ab6c93d7 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua @@ -49,5 +49,16 @@ for i, line in pairs(luci.sys.execl("dnsmasq --help dhcp")) do k, v = line:match("([^ ]+) +([^ ]+)") s:option(Value, "dhcp"..k, v).optional = true end + +m2 = Map("luci_ethers", translate("luci_ethers")) + +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")) + -return m \ No newline at end of file +return m, m2 \ No newline at end of file -- cgit v1.2.3