Add device name into the l2 devices page

This commit is contained in:
emanuele-f 2018-01-17 12:11:08 +01:00
parent 5ae3bb13ba
commit fa6d428b13
5 changed files with 24 additions and 6 deletions

View file

@ -66,6 +66,8 @@ function mac2record(mac)
record["column_traffic"] = bytesToSize(mac["bytes.sent"] + mac["bytes.rcvd"])
record["column_name"] = getDeviceName(mac["mac"], mac["vlan"], true)
return record
end