summaryrefslogtreecommitdiffhomepage
path: root/module
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-22 14:19:49 +0000
committerSteven Barth <steven@midlink.org>2008-04-22 14:19:49 +0000
commit007b82885fbc8f8adf7dfe99c510f2d478e6fa59 (patch)
treeb4b3953f26594dec19ad38248f318b21b704fd8c /module
parentede263b76901345d686eb1c1010d949a711df540 (diff)
* ffluci.model.cbi.admin_services.olsr: Fixed variable conversion
Diffstat (limited to 'module')
-rw-r--r--module/admin-core/src/model/cbi/admin_services/olsrd.lua30
1 files changed, 18 insertions, 12 deletions
diff --git a/module/admin-core/src/model/cbi/admin_services/olsrd.lua b/module/admin-core/src/model/cbi/admin_services/olsrd.lua
index b223898636..1090601d38 100644
--- a/module/admin-core/src/model/cbi/admin_services/olsrd.lua
+++ b/module/admin-core/src/model/cbi/admin_services/olsrd.lua
@@ -19,14 +19,14 @@ noint = s:option(Flag, "AllowNoInt", "Start ohne Netzwerk")
noint.enabled = "yes"
noint.disabled = "no"
-s:option(Value, "Pollrate", "Abfragerate (Pollrate)", "s").isnumber = true
+s:option(Value, "Pollrate", "Abfragerate (Pollrate)", "s")
tcr = s:option(ListValue, "TcRedundancy", "TC-Redundanz")
tcr:value("0", "MPR-Selektoren")
tcr:value("1", "MPR-Selektoren und MPR")
tcr:value("2", "Alle Nachbarn")
-s:option(Value, "MprCoverage", "MPR-Erfassung").isinteger = true
+s:option(Value, "MprCoverage", "MPR-Erfassung")
lql = s:option(ListValue, "LinkQualityLevel", "VQ-Level")
lql:value("0", "deaktiviert")
@@ -35,7 +35,7 @@ lql:value("2", "MPR-Auswahl und Routing")
lqfish = s:option(Flag, "LinkQualityFishEye", "VQ-Fisheye")
-s:option(Value, "LinkQualityWinSize", "VQ-Fenstergröße").isinteger = true
+s:option(Value, "LinkQualityWinSize", "VQ-Fenstergröße")
s:option(Value, "LinkQualityDijkstraLimit", "VQ-Dijkstralimit")
@@ -49,23 +49,29 @@ i.anonymous = true
i.addremove = true
i.dynamic = true
-i:option(Value, "Interface", "Netzwerkschnittstellen")
+network = i:option(ListValue, "Interface", "Netzwerkschnittstellen")
+network:value("")
+for k, v in pairs(ffluci.model.uci.show("network").network) do
+ if v[".type"] == "interface" and k ~= "loopback" then
+ network:value(k)
+ end
+end
-i:option(Value, "HelloInterval", "Hello-Intervall").isnumber = true
+i:option(Value, "HelloInterval", "Hello-Intervall")
-i:option(Value, "HelloValidityTime", "Hello-Gültigkeit").isnumber = true
+i:option(Value, "HelloValidityTime", "Hello-Gültigkeit")
-i:option(Value, "TcInterval", "TC-Intervall").isnumber = true
+i:option(Value, "TcInterval", "TC-Intervall")
-i:option(Value, "TcValidityTime", "TC-Gültigkeit").isnumber = true
+i:option(Value, "TcValidityTime", "TC-Gültigkeit")
-i:option(Value, "MidInterval", "MID-Intervall").isnumber = true
+i:option(Value, "MidInterval", "MID-Intervall")
-i:option(Value, "MidValidityTime", "MID-Gültigkeit").isnumber = true
+i:option(Value, "MidValidityTime", "MID-Gültigkeit")
-i:option(Value, "HnaInterval", "HNA-Intervall").isnumber = true
+i:option(Value, "HnaInterval", "HNA-Intervall")
-i:option(Value, "HnaValidityTime", "HNA-Gültigkeit").isnumber = true
+i:option(Value, "HnaValidityTime", "HNA-Gültigkeit")
p = m:section(TypedSection, "LoadPlugin", "Plugins")