diff options
author | Steven Barth <steven@midlink.org> | 2009-11-13 18:26:06 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-13 18:26:06 +0000 |
commit | 0784b7b9d512602f519aa7c0e826f97ef5ca25ff (patch) | |
tree | 39f1f7e23d231cbcd1ba79001ebc070c554e8175 /modules/niu/luasrc/controller | |
parent | 43820b99ecac96b1f5c3abe44eb446cdea5d41b4 (diff) |
NIU:
WAN Ehternet / DSL complete.
Custom Routes complete.
Conntrack introduced.
Overall minor fixes.
Diffstat (limited to 'modules/niu/luasrc/controller')
-rw-r--r-- | modules/niu/luasrc/controller/niu/network.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/modules/niu/luasrc/controller/niu/network.lua b/modules/niu/luasrc/controller/niu/network.lua index 36aff630d7..c90662b6e6 100644 --- a/modules/niu/luasrc/controller/niu/network.lua +++ b/modules/niu/luasrc/controller/niu/network.lua @@ -12,7 +12,7 @@ You may obtain a copy of the License at $Id$ ]]-- -local req = require +local require = require module "luci.controller.niu.network" function index() @@ -27,10 +27,17 @@ function index() uci.inst_state:foreach("dhcp", "dhcp", function(s) if s.interface == "lan" and s.ignore ~= "1" then entry({"niu", "network", "assign"}, cbi("niu/network/assign", - {on_success_to={"niu"}}), "Assign local addresses", 30) + {on_success_to={"niu"}}), "Display and Customize Address Assignment", 30) end end) entry({"niu", "network", "routes"}, cbi("niu/network/routes", - {on_success_to={"niu"}}), "Assign custom routes", 40) + {on_success_to={"niu"}}), "Display and Customize Routing", 40) + + entry({"niu", "network", "conntrack"}, call("cnntrck"), + "Display Local Network Activity", 50) +end + +function cnntrck() + require "luci.template".render("niu/network/conntrack") end |