From 82743b3bd4b4603f2c6b85566d07182cb0f1ce52 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 12 Sep 2019 11:06:38 +0200 Subject: luci-mod-network: reimplement switch configuration as client side view Signed-off-by: Jo-Philipp Wich --- .../luci-mod-network/luasrc/controller/admin/network.lua | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'modules/luci-mod-network/luasrc/controller/admin') diff --git a/modules/luci-mod-network/luasrc/controller/admin/network.lua b/modules/luci-mod-network/luasrc/controller/admin/network.lua index a381bbc614..f8623be93e 100644 --- a/modules/luci-mod-network/luasrc/controller/admin/network.lua +++ b/modules/luci-mod-network/luasrc/controller/admin/network.lua @@ -18,13 +18,7 @@ function index() end) if has_switch then - page = node("admin", "network", "vlan") - page.target = cbi("admin_network/vlan") - page.title = _("Switch") - page.order = 20 - - page = entry({"admin", "network", "switch_status"}, call("switch_status"), nil) - page.leaf = true + entry({"admin", "network", "switch"}, view("network/switch"), _("Switch"), 20) end @@ -271,13 +265,6 @@ function wifi_reconnect(radio) end end -function switch_status(switches) - local s = require "luci.tools.status" - - luci.http.prepare_content("application/json") - luci.http.write_json(s.switch_status(switches)) -end - function diag_command(cmd, addr) if addr and addr:match("^[a-zA-Z0-9%-%.:_]+$") then luci.http.prepare_content("text/plain") -- cgit v1.2.3