diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-07-15 15:18:00 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-07-15 16:23:19 +0200 |
commit | a48a14259976013359c22c27b269786287ab131b (patch) | |
tree | 38935774510c6e4646e4785926e97f5ac0f5e0da /modules/luci-mod-admin-full/luasrc/controller | |
parent | 2787a52d6dc9cb2027ba1c24d029e08b4ac33b62 (diff) |
luci-mod-admin-full: improve interface overview display
Remove the guessing of primary interfaces for now as we cannot yet properly
track parent / child interface relations.
Instead, add tooltips to the interface icons displaying detailed physical
layer information per netdev.
For dynamic or true alias interfaces (using "@" notation), skip the
reporting of MAC and traffic stats.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/controller')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/controller/admin/network.lua | 2 |
1 files changed, 2 insertions, 0 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 4680687883..31b9416253 100644 --- a/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua +++ b/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua @@ -211,6 +211,7 @@ function iface_status(ifaces) errors = net:errors(), name = device:shortname(), type = device:type(), + typename = device:get_type_i18n(), ifname = device:name(), macaddr = device:mac(), is_up = net:is_up() and device:is_up(), @@ -228,6 +229,7 @@ function iface_status(ifaces) data.subdevices[#data.subdevices+1] = { name = device:shortname(), type = device:type(), + typename = device:get_type_i18n(), ifname = device:name(), macaddr = device:mac(), is_up = device:is_up(), |