2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
14 module("luci.controller.admin.network", package.seeall)
18 require("luci.model.uci")
19 local i18n = luci.i18n.translate
21 local page = node("admin", "network")
22 page.target = template("admin_network/index")
23 page.title = i18n("network", "Netzwerk")
26 local page = node("admin", "network", "vlan")
27 page.target = cbi("admin_network/vlan")
28 page.title = i18n("a_n_switch", "Switch")
31 local page = node("admin", "network", "ifaces")
32 page.target = cbi("admin_network/ifaces")
33 page.title = i18n("interfaces", "Schnittstellen")
37 luci.model.uci.foreach("network", "interface",
39 local ifc = section[".name"]
40 if ifc ~= "loopback" then
41 entry({"admin", "network", "ifaces", ifc},
42 page.target, ifc:upper())
48 local page = node("admin", "network", "dhcp")
49 page.target = cbi("admin_network/dhcp")
53 local page = node("admin", "network", "ptp")
54 page.target = cbi("admin_network/ptp")
55 page.title = "PPPoE / PPTP"
58 local page = node("admin", "network", "routes")
59 page.target = cbi("admin_network/routes")
60 page.title = i18n("a_n_routes", "Routen")