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:
Florian Eckert 2018-08-30 09:04:48 +02:00
parent 665e062061
commit 21de87a1d6

View file

@ -144,7 +144,8 @@ function diagnosticsData(interface, task)
local uci = require "luci.model.uci".cursor(nil, "/var/state")
local nw = require "luci.model.network".init()
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")
if device then