summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-13 01:24:44 +0000
committerSteven Barth <steven@midlink.org>2008-08-13 01:24:44 +0000
commit07fdaa87dbac0582960cded4e9aa981d4a141782 (patch)
tree158e9c66902494de736ea282b216a374ba01f516 /modules/admin-full/luasrc/controller
parent0e3fda59e094a272bafc43b67e6393dc6f2b279e (diff)
modules/admin-full: Network interface configuration optimization part #1
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua23
1 files changed, 10 insertions, 13 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index 1d44bda777..fa7a8c719a 100644
--- a/modules/admin-full/luasrc/controller/admin/network.lua
+++ b/modules/admin-full/luasrc/controller/admin/network.lua
@@ -28,35 +28,32 @@ function index()
page.title = i18n("a_n_switch", "Switch")
page.order = 10
- local page = node("admin", "network", "ifaces")
- page.target = cbi("admin_network/ifaces")
+ local page = node("admin", "network", "network")
+ page.target = cbi("admin_network/network")
page.title = i18n("interfaces", "Schnittstellen")
page.order = 20
- page.leaf = true
-
luci.model.uci.foreach("network", "interface",
function (section)
local ifc = section[".name"]
if ifc ~= "loopback" then
- entry({"admin", "network", "ifaces", ifc},
- page.target, ifc:upper())
+ entry({"admin", "network", "network", ifc},
+ alias("admin", "network", "ifaces", ifc),
+ ifc:upper())
end
end
)
-
+
+ local page = node("admin", "network", "ifaces")
+ page.target = cbi("admin_network/ifaces")
+ page.leaf = true
local page = node("admin", "network", "dhcp")
page.target = cbi("admin_network/dhcp")
page.title = "DHCP"
page.order = 30
- local page = node("admin", "network", "ptp")
- page.target = cbi("admin_network/ptp")
- page.title = "PPPoE / PPTP"
- page.order = 40
-
local page = node("admin", "network", "routes")
page.target = cbi("admin_network/routes")
page.title = i18n("a_n_routes", "Routen")
- page.order = 50
+ page.order = 40
end \ No newline at end of file