summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-04 17:28:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-04 17:28:15 +0000
commit08ceafc2e965cef633ea918d6561e30cadf8ca95 (patch)
tree2cd30ee6f5cb8f7cc55b828cb6f700a56bea94f5 /modules/admin-full/luasrc/model
parent5fa8fd228edef6cba30d637780717576d4057246 (diff)
modules/admin-{mini,full}: display client hostnames in lease overview
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua
index 678ebab06c..70b49d7fa4 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua
@@ -38,6 +38,13 @@ end
if leases then
v = m2:section(Table, leases, translate("Active Leases"))
+
+ name = v:option(DummyValue, 4, translate("Hostname"))
+ function name.cfgvalue(self, ...)
+ local value = DummyValue.cfgvalue(self, ...)
+ return (value == "*") and "?" or value
+ end
+
ip = v:option(DummyValue, 3, translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address"))
mac = v:option(DummyValue, 2, translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address"))