Merge branch 'menu'
[project/luci.git] / modules / admin-core / src / controller / admin / network.lua
index 0e3165f..8f11c28 100644 (file)
@@ -1 +1,39 @@
-module("ffluci.controller.admin.network", package.seeall)
\ No newline at end of file
+module("ffluci.controller.admin.network", package.seeall)
+
+function index()
+       local page  = node("admin", "network")
+       page.target = template("admin_network/index")
+       page.title  = "Netzwerk"  
+       page.order  = 50
+       
+       local page  = node("admin", "network", "vlan")
+       page.target = cbi("admin_network/vlan")
+       page.title  = "Switch"
+       page.order  = 10
+       
+       local page  = node("admin", "network", "ifaces")
+       page.target = cbi("admin_network/ifaces")
+       page.title  = "Schnittstellen"
+       page.order  = 20
+       
+       local page  = node("admin", "network", "dhcp")
+       page.target = cbi("admin_network/dhcp")
+       page.title  = "DHCP-Server"
+       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  = "Statische Routen"
+       page.order  = 50
+       
+       if ffluci.fs.isfile("/etc/config/qos") then
+               local page  = node("admin", "network", "qos")
+               page.target = cbi("admin_network/qos")
+               page.title  = "Quality of Service"
+       end
+end
\ No newline at end of file