2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
18 m = Map("dhcp", translate("Hostnames"))
20 s = m:section(TypedSection, "domain", translate("Host entries"))
23 s.template = "cbi/tblsection"
25 hn = s:option(Value, "name", translate("Hostname"))
26 hn.datatype = "hostname"
29 ip = s:option(Value, "ip", translate("IP address"))
30 ip.datatype = "ipaddr"
33 for i, dataset in ipairs(luci.sys.net.arptable()) do
35 dataset["IP address"],
36 "%s (%s)" %{ dataset["IP address"], dataset["HW address"] }