luci-app-mwan3: diagnostic fix physical device lookup
Use diffrent function to get the physical interface name. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
665e062061
commit
21de87a1d6
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ function diagnosticsData(interface, task)
|
||||||
local uci = require "luci.model.uci".cursor(nil, "/var/state")
|
local uci = require "luci.model.uci".cursor(nil, "/var/state")
|
||||||
local nw = require "luci.model.network".init()
|
local nw = require "luci.model.network".init()
|
||||||
local network = nw:get_network(interface)
|
local network = nw:get_network(interface)
|
||||||
local device = network and network:ifname()
|
local device = network and network:get_interface()
|
||||||
|
device = device:name()
|
||||||
|
|
||||||
luci.http.prepare_content("text/plain")
|
luci.http.prepare_content("text/plain")
|
||||||
if device then
|
if device then
|
||||||
|
|
Loading…
Reference in a new issue