commit 4f6198094cf4134179d1f9c9fa8f79759a27c87e
[project/luci.git] / modules / admin-core / luasrc / model / cbi / admin_network / qos.lua
1 -- ToDo: Translate, Add descriptions and help texts
2 m = Map("qos", "Quality of Service", [[Mit Hilfe von QoS kann einzelnen Rechnern oder Netzwerkdiensten
3 eine höhere oder niedrigere Priorität zugewiesen werden.]])
4
5 s = m:section(TypedSection, "interface", "Schnittstellen")
6 s.addremove = true
7
8 s:option(Flag, "enabled", "aktiviert")
9
10 c = s:option(ListValue, "classgroup", "Klassifizierung")
11 c:value("Default", "standard")
12 c.default = "Default"
13
14 s:option(Flag, "overhead", "Overheadberechnung")
15
16 s:option(Value, "download", "Downlink", "kb/s")
17
18 s:option(Value, "upload", "Uplink", "kb/s")
19
20 s = m:section(TypedSection, "classify", "Klassifizierung")
21
22 s.anonymous = true
23 s.addremove = true
24
25 t = s:option(ListValue, "target", "Klasse")
26 t:value("Priority")
27 t:value("Express")
28 t:value("Normal")
29 t:value("Bulk")
30 t.default = "Normal"
31
32 s:option(Value, "srchost", "Quelladresse", "Quellhost / Quellnetz").optional = true
33 s:option(Value, "dsthost", "Zieladresse", "Zielhost / Zielnetz").optional = true
34 s:option(Value, "layer7", "Layer 7").optional = true
35
36 p2p = s:option(ListValue, "ipp2p", "P2P")
37 p2p:value("")
38 p2p:value("all", "Alle")
39 p2p:value("bit", "Bittorrent")
40 p2p:value("dc", "DirectConnect")
41 p2p:value("edk", "eDonkey")
42 p2p:value("gnu", "Gnutella")
43 p2p:value("kazaa", "Kazaa")
44 p2p.optional = true
45
46 p = s:option(ListValue, "proto", "Protokoll")
47 p:value("")
48 p:value("tcp", "TCP")
49 p:value("udp", "UDP")
50 p:value("icmp", "ICMP")
51 p.optional = true
52
53 s:option(Value, "ports", "Port").optional = true
54 s:option(Value, "portrange", "Portbereich").optional = true
55
56 return m