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.]])
6 s = m:section(TypedSection, "route", "")
9 s.template = "cbi/tblsection"
11 iface = s:option(ListValue, "interface", "Schnittstelle")
12 luci.model.uci.foreach("network", "interface",
14 if section[".name"] ~= "loopback" then
15 iface:value(section[".name"])
19 s:option(Value, "target", "Ziel", "Host-IP oder Netzwerk")
21 s:option(Value, "netmask", "Netzmaske", "falls Ziel ein Netzwerk ist").rmemepty = true
23 s:option(Value, "gateway", "Gateway")