From 84d6646bb4b9ff681fe434d34781971bd4c72706 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 4 Aug 2008 23:48:41 +0000 Subject: modules/admin-full, modules/admin-mini: Added eyecandy ;-) --- modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (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 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 -- cgit v1.2.3