--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local req = require module "luci.controller.niu.network" function index() entry({"niu", "network"}, nil, "Network").dbtemplate = "niu/network" entry({"niu", "network", "lan"}, cbi("niu/network/lan", {on_success_to={"niu"}}), "Configure LAN", 10) entry({"niu", "network", "wan"}, cbi("niu/network/wan", {on_success_to={"niu"}}), "Configure Internet", 20) entry({"niu", "network", "assign"}, cbi("niu/network/assign", {on_success_to={"niu"}}), "Address Assignment", 30) entry({"niu", "network", "routes"}, cbi("niu/network/routes", {on_success_to={"niu"}}), "Custom Routing", 40) end