* Core translation
[project/luci.git] / applications / luci-qos / luasrc / model / cbi / qos / qos.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 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 m = Map("qos", "Quality of Service", [[Mit Hilfe von QoS kann einzelnen Rechnern oder Netzwerkdiensten
15 eine höhere oder niedrigere Priorität zugewiesen werden.]])
16
17 s = m:section(TypedSection, "interface", "Schnittstellen")
18 s.addremove = true
19
20 s:option(Flag, "enabled", "aktiviert")
21
22 c = s:option(ListValue, "classgroup", "Klassifizierung")
23 c:value("Default", "standard")
24 c.default = "Default"
25
26 s:option(Flag, "overhead", "Overheadberechnung")
27
28 s:option(Value, "download", "Downlink", "kb/s")
29
30 s:option(Value, "upload", "Uplink", "kb/s")
31
32 s = m:section(TypedSection, "classify", "Klassifizierung")
33
34 s.anonymous = true
35 s.addremove = true
36
37 t = s:option(ListValue, "target", "Klasse")
38 t:value("Priority")
39 t:value("Express")
40 t:value("Normal")
41 t:value("Bulk")
42 t.default = "Normal"
43
44 s:option(Value, "srchost", "Quelladresse", "Quellhost / Quellnetz").optional = true
45 s:option(Value, "dsthost", "Zieladresse", "Zielhost / Zielnetz").optional = true
46 s:option(Value, "layer7", "Layer 7").optional = true
47
48 p2p = s:option(ListValue, "ipp2p", "P2P")
49 p2p:value("")
50 p2p:value("all", "Alle")
51 p2p:value("bit", "Bittorrent")
52 p2p:value("dc", "DirectConnect")
53 p2p:value("edk", "eDonkey")
54 p2p:value("gnu", "Gnutella")
55 p2p:value("kazaa", "Kazaa")
56 p2p.optional = true
57
58 p = s:option(ListValue, "proto", "Protokoll")
59 p:value("")
60 p:value("tcp", "TCP")
61 p:value("udp", "UDP")
62 p:value("icmp", "ICMP")
63 p.optional = true
64
65 s:option(Value, "ports", "Port").optional = true
66 s:option(Value, "portrange", "Portbereich").optional = true
67
68 return m