applications/luci-upnp: OpenWrt r18491 changes the enable/disable behaviour, adept...
[project/luci.git] / applications / luci-upnp / luasrc / model / cbi / upnp / upnp.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14 ]]--
15 m = Map("upnpd", translate("Universal Plug & Play"), translate("UPNP allows clients in the local network to automatically configure the router."))
16
17 s = m:section(NamedSection, "config", "upnpd", "")
18 s.addremove = false
19
20 e = s:option(Flag, "enabled", translate("enable"))
21 e.rmempty = false
22
23 s:option(Flag, "secure_mode", translate("Enable secure mode")).rmempty = true
24 s:option(Flag, "log_output", translate("Log output")).rmempty = true
25 s:option(Value, "download", translate("Downlink"), "kByte/s").rmempty = true
26 s:option(Value, "upload", translate("Uplink"), "kByte/s").rmempty = true
27
28 return m