luci-mod-admin-full: expose errors, description and up state in net status
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
94be4881a0
commit
54c9a77bd3
1 changed files with 5 additions and 1 deletions
|
@ -206,6 +206,7 @@ function iface_status(ifaces)
|
||||||
if device then
|
if device then
|
||||||
local data = {
|
local data = {
|
||||||
id = iface,
|
id = iface,
|
||||||
|
desc = net:get_i18n(),
|
||||||
proto = net:proto(),
|
proto = net:proto(),
|
||||||
uptime = net:uptime(),
|
uptime = net:uptime(),
|
||||||
gwaddr = net:gwaddr(),
|
gwaddr = net:gwaddr(),
|
||||||
|
@ -213,11 +214,14 @@ function iface_status(ifaces)
|
||||||
ip6addrs = net:ip6addrs(),
|
ip6addrs = net:ip6addrs(),
|
||||||
dnsaddrs = net:dnsaddrs(),
|
dnsaddrs = net:dnsaddrs(),
|
||||||
ip6prefix = net:ip6prefix(),
|
ip6prefix = net:ip6prefix(),
|
||||||
|
errors = net:errors(),
|
||||||
name = device:shortname(),
|
name = device:shortname(),
|
||||||
type = device:type(),
|
type = device:type(),
|
||||||
ifname = device:name(),
|
ifname = device:name(),
|
||||||
macaddr = device:mac(),
|
macaddr = device:mac(),
|
||||||
is_up = device:is_up(),
|
is_up = net:is_up() and device:is_up(),
|
||||||
|
is_alias = net:is_alias(),
|
||||||
|
is_dynamic = net:is_dynamic(),
|
||||||
rx_bytes = device:rx_bytes(),
|
rx_bytes = device:rx_bytes(),
|
||||||
tx_bytes = device:tx_bytes(),
|
tx_bytes = device:tx_bytes(),
|
||||||
rx_packets = device:rx_packets(),
|
rx_packets = device:rx_packets(),
|
||||||
|
|
Loading…
Reference in a new issue