summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-15 16:28:29 +0000
committerSteven Barth <steven@midlink.org>2008-07-15 16:28:29 +0000
commit8bb8b7c09cee818246312a637d846be491e171d3 (patch)
treea892d7845ba4ce22389f14c453137763fe63031c /modules/admin-full
parent5510e082ca9fbc141ba63c27d968f2930b731357 (diff)
modules/admin-mini: Added DHCP page
modules/admin-full: Added static leases configuration to DHCP page
Diffstat (limited to 'modules/admin-full')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua13
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 b22f7354a..e9ab6c93d 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