(no commit message)
[project/luci.git] / module / admin-core / src / model / cbi / admin_network / routes.lua
index 5a5f780070e057873754198867de151a1146bc18..49e43218045976754c0a5b5001e270d92bac8f54 100644 (file)
@@ -1,11 +1,18 @@
 -- ToDo: Translate, Add descriptions and help texts
-m = Map("network", "Statische Routen")
+m = Map("network", "Statische Routen", [[Statische Routen geben an,
+über welche Schnittstelle und welches Gateway ein bestimmter Host
+oder ein bestimmtes Netzwerk erreicht werden kann.]])
 
 s = m:section(TypedSection, "route")
 s.addremove = true
 s.anonymous = true
 
-s:option(Value, "interface", "Schnittstelle")
+iface = s:option(ListValue, "interface", "Schnittstelle")
+for k, v in pairs(ffluci.model.uci.sections("network")) do
+       if v[".type"] == "interface" and k ~= "loopback" then
+               iface:value(k)
+       end
+end
 
 s:option(Value, "target", "Ziel", "Host-IP oder Netzwerk")