summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-04 23:48:41 +0000
committerSteven Barth <steven@midlink.org>2008-08-04 23:48:41 +0000
commit84d6646bb4b9ff681fe434d34781971bd4c72706 (patch)
tree6f8522e4f36a6fb972501b9a3444b02ecaae763b /modules/admin-full/luasrc/model
parentad04a8212508522a5ef23e62ec22dc961c16f196 (diff)
modules/admin-full, modules/admin-mini: Added eyecandy ;-)
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua9
1 files changed, 7 insertions, 2 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 7a4b3c1343..20adcdf100 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
@@ -58,8 +58,13 @@ s.addremove = true
s.anonymous = true
s.template = "cbi/tblsection"
-s:option(Value, "macaddr", translate("macaddress"))
-s:option(Value, "ipaddr", translate("ipaddress"))
+mac = s:option(Value, "macaddr", translate("macaddress"))
+ip = s:option(Value, "ipaddr", translate("ipaddress"))
+for i, dataset in ipairs(luci.sys.net.arptable()) do
+ ip:value(dataset["IP address"])
+ mac:value(dataset["HW address"],
+ dataset["HW address"] .. " (" .. dataset["IP address"] .. ")")
+end
return m, m2