s.template = "cbi/tblsection"
name = s:option(Value, "name", translate("Hostname"))
+name.datatype = "hostname"
+name.rmempty = true
mac = s:option(Value, "mac", translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address"))
mac.datatype = "macaddr"
s.template = "cbi/tblsection"
hn = s:option(Value, "name", translate("Hostname"))
+hn.datatype = "hostname"
+hn.rmempty = true
+
ip = s:option(Value, "ip", translate("IP address"))
+ip.datatype = "ipaddr"
+ip.rmempty = true
+
for i, dataset in ipairs(luci.sys.net.arptable()) do
ip:value(
dataset["IP address"],