More NIU
[project/luci.git] / modules / niu / luasrc / controller / niu / network.lua
1 --[[
2 LuCI - Lua Development Framework
3
4 Copyright 2009 Steven Barth <steven@midlink.org>
5
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
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 local req = require
16 module "luci.controller.niu.network"
17
18 function index()
19 entry({"niu", "network"}, alias("admin", "network"), "Network")
20 .dbtemplate = "niu/network"
21
22 entry({"niu", "network", "lan"},
23 cbi("niu/network/lan", {on_success_to={"niu"}}), "Configure LAN", 10)
24
25 entry({"niu", "network", "wan"},
26 cbi("niu/network/wan", {on_success_to={"niu"}}), "Configure Internet", 20)
27
28 entry({"niu", "network", "assign"}, cbi("niu/network/assign",
29 {on_success_to={"niu"}}), "Address Assignment", 30)
30
31 entry({"niu", "network", "routes"}, cbi("niu/network/routes",
32 {on_success_to={"niu"}}), "Custom Routing", 40)
33 end