X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-olsr%2Fluasrc%2Fmodel%2Fcbi%2Folsr%2Folsrd.lua;h=4da1c4060dd44dd0119497c226140c1bb8053cbf;hp=cbcc3e64c577c54d631adb4691820cc8a6d64806;hb=ca6a85fd8363cbc789e660977b8879c4abe41ce0;hpb=b00102c8b7ee5d282777706ddfc3b783dab3dfac diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index cbcc3e64c..4da1c4060 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -14,9 +14,9 @@ $Id$ require("luci.tools.webadmin") -m = Map("olsrd", "OLSR") +m = Map("olsrd", translate("olsrd", "OLSR Daemon")) -s = m:section(TypedSection, "olsrd", translate("olsr_general")) +s = m:section(TypedSection, "olsrd", translate("olsrd_general")) s.dynamic = true s.anonymous = true @@ -38,26 +38,26 @@ noint.optional = true s:option(Value, "Pollrate").optional = true tcr = s:option(ListValue, "TcRedundancy") -tcr:value("0", translate("olsr_general_tcredundancy_0")) -tcr:value("1", translate("olsr_general_tcredundancy_1")) -tcr:value("2", translate("olsr_general_tcredundancy_2")) +tcr:value("0", translate("olsrd_olsrd_tcredundancy_0")) +tcr:value("1", translate("olsrd_olsrd_tcredundancy_1")) +tcr:value("2", translate("olsrd_olsrd_tcredundancy_2")) tcr.optional = true s:option(Value, "MprCoverage").optional = true lql = s:option(ListValue, "LinkQualityLevel") lql:value("0", translate("disable")) -lql:value("1", translate("olsr_general_linkqualitylevel_1")) -lql:value("2", translate("olsr_general_linkqualitylevel_2")) +lql:value("1", translate("olsrd_olsrd_linkqualitylevel_1")) +lql:value("2", translate("olsrd_olsrd_linkqualitylevel_2")) lql.optional = true 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")) +lqa:value("etx_fpm", translate("olsrd_etx_fpm")) +lqa:value("etx_float", translate("olsrd_etx_float")) +lqa:value("etx_ff", translate("olsrd_etx_ff")) lqa.optional = true lqfish = s:option(Flag, "LinkQualityFishEye") @@ -114,6 +114,13 @@ i:option(Value, "MidValidityTime").optional = true i:option(Value, "HnaInterval").optional = true i:option(Value, "HnaValidityTime").optional = true +ip6t = i:option(ListValue, "Ip6AddrType") +ip6t:value("auto") +ip6t:value("site-local") +ip6t:value("unique-local") +ip6t:value("global") +ip6t.optional = true + adc = i:option(Flag, "AutoDetectChanges") adc.enabled = "yes" adc.disabled = "no" @@ -121,6 +128,8 @@ adc.optional = true ipc = m:section(TypedSection, "IpcConnect") +ipc.anonymous = true + conns = ipc:option(Value, "MaxConnections") conns.isInteger = true