summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/model/cbi/olsr
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-09 07:46:18 +0000
committerSteven Barth <steven@midlink.org>2008-07-09 07:46:18 +0000
commit12c01f8ae47d99d6486cd9512547b80ceb9e1ff1 (patch)
treedc29be351b7aeb4db787ff0e60dd399694eb5f1b /applications/luci-olsr/luasrc/model/cbi/olsr
parent68349d5e2f3ecfa4769a0bdebef5151928bd0685 (diff)
applications/luci-olsr: Update CBI model for upstream compatibility with 0.5.6-rc7
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi/olsr')
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
index 67b3169a0..c57d3c8cb 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
@@ -44,6 +44,14 @@ lql:value("0", translate("disable"))
lql:value("1", translate("olsr_general_linkqualitylevel_1"))
lql:value("2", translate("olsr_general_linkqualitylevel_2"))
+s:option(Value, "LinkQualityAging").optional = true
+
+lqa = s:option(ListValue, "LinkQualityAlgorithm")
+lqa.optional = true
+lqa:value("etx_fpm", translate("olsr_etx_fpm"))
+lqa:value("etx_float", translate("olsr_etx_float"))
+lqa:value("etx_ff", translate("olsr_etx_ff"))
+
lqfish = s:option(Flag, "LinkQualityFishEye")
s:option(Value, "LinkQualityWinSize")
@@ -54,6 +62,22 @@ hyst = s:option(Flag, "UseHysteresis")
hyst.enabled = "yes"
hyst.disabled = "no"
+fib = s:option(ListValue, "FIBMetric")
+fib.optional = true
+fib:value("flat")
+fib:value("correct")
+fib:value("approx")
+
+clrscr = s:option(Flag, "ClearScreen")
+clrscr.enabled = "yes"
+clrscr.disabled = "no"
+
+willingness = s:option(ListValue, "Willingness")
+for i=0,7 do
+ willingness:value(i)
+end
+
+
i = m:section(TypedSection, "Interface", translate("interfaces"))
i.anonymous = true
@@ -69,6 +93,7 @@ luci.model.uci.foreach("network", "interface",
end
end)
+i:option(Value, "Ip4Broadcast")
i:option(Value, "HelloInterval")
i:option(Value, "HelloValidityTime")
i:option(Value, "TcInterval")