summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/luasrc/controller/admin/network.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-12 11:06:38 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-12 11:09:57 +0200
commit82743b3bd4b4603f2c6b85566d07182cb0f1ce52 (patch)
tree9444cba040a334821e6593c13541792c718084ea /modules/luci-mod-network/luasrc/controller/admin/network.lua
parent5fd21bc9efedb29ff8376f8043ed2a4b74788d6b (diff)
luci-mod-network: reimplement switch configuration as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/luasrc/controller/admin/network.lua')
-rw-r--r--modules/luci-mod-network/luasrc/controller/admin/network.lua15
1 files changed, 1 insertions, 14 deletions
diff --git a/modules/luci-mod-network/luasrc/controller/admin/network.lua b/modules/luci-mod-network/luasrc/controller/admin/network.lua
index a381bbc61..f8623be93 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")