Renamed FFLuCI to LuCI, ffluci to luci and Freifunk Lua Configuration Interface to...
[project/luci.git] / modules / admin-core / src / model / cbi / admin_network / routes.lua
1 -- ToDo: Translate, Add descriptions and help texts
2 m = Map("network", "Statische Routen", [[Statische Routen geben an,
3 über welche Schnittstelle und welches Gateway ein bestimmter Host
4 oder ein bestimmtes Netzwerk erreicht werden kann.]])
5
6 s = m:section(TypedSection, "route")
7 s.addremove = true
8 s.anonymous = true
9 s.template  = "cbi/tblsection"
10
11 iface = s:option(ListValue, "interface", "Schnittstelle")
12 for k, v in pairs(luci.model.uci.sections("network")) do
13         if v[".type"] == "interface" and k ~= "loopback" then
14                 iface:value(k)
15         end
16 end
17
18 s:option(Value, "target", "Ziel", "Host-IP oder Netzwerk")
19
20 s:option(Value, "netmask", "Netzmaske", "falls Ziel ein Netzwerk ist").rmemepty = true
21
22 s:option(Value, "gateway", "Gateway")
23
24 return m