diff options
author | Steven Barth <steven@midlink.org> | 2008-07-15 16:28:29 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-15 16:28:29 +0000 |
commit | 8bb8b7c09cee818246312a637d846be491e171d3 (patch) | |
tree | a892d7845ba4ce22389f14c453137763fe63031c /modules/admin-full/luasrc/model | |
parent | 5510e082ca9fbc141ba63c27d968f2930b731357 (diff) |
modules/admin-mini: Added DHCP page
modules/admin-full: Added static leases configuration to DHCP page
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 13 |
1 files changed, 12 insertions, 1 deletions
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 |