From 21de87a1d674461443c8c31a69a10cbcdc3a6d62 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 30 Aug 2018 09:04:48 +0200 Subject: luci-app-mwan3: diagnostic fix physical device lookup Use diffrent function to get the physical interface name. Signed-off-by: Florian Eckert --- applications/luci-app-mwan3/luasrc/controller/mwan3.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applications') diff --git a/applications/luci-app-mwan3/luasrc/controller/mwan3.lua b/applications/luci-app-mwan3/luasrc/controller/mwan3.lua index 541d695ec..5fa8d8a91 100644 --- a/applications/luci-app-mwan3/luasrc/controller/mwan3.lua +++ b/applications/luci-app-mwan3/luasrc/controller/mwan3.lua @@ -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 -- cgit v1.2.3