summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-07-12 16:44:31 +0200
committerJo-Philipp Wich <jo@mein.io>2018-07-12 18:10:10 +0200
commit54c9a77bd34de1b37488431149e98f64f8c01547 (patch)
treec81fd0d0a2a38e8b65449942f9fd249936979281 /modules
parent94be4881a043731d03878b3f06f05e7430e58746 (diff)
luci-mod-admin-full: expose errors, description and up state in net status
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-admin-full/luasrc/controller/admin/network.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
index 8c14de924..4605ffaf3 100644
--- a/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
+++ b/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
@@ -206,6 +206,7 @@ function iface_status(ifaces)
if device then
local data = {
id = iface,
+ desc = net:get_i18n(),
proto = net:proto(),
uptime = net:uptime(),
gwaddr = net:gwaddr(),
@@ -213,11 +214,14 @@ function iface_status(ifaces)
ip6addrs = net:ip6addrs(),
dnsaddrs = net:dnsaddrs(),
ip6prefix = net:ip6prefix(),
+ errors = net:errors(),
name = device:shortname(),
type = device:type(),
ifname = device:name(),
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(),
tx_bytes = device:tx_bytes(),
rx_packets = device:rx_packets(),