summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-10-16 09:45:41 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-11-14 09:17:04 +0100
commit8517a25a80aa1b2f5e055d9ed8d61f33b1062749 (patch)
tree8dd05c343806ba91de42519d6e92e6a04273797d /applications/luci-app-mwan3
parent29ab12650c2118362e2aeb0c2eaf5433b63ee617 (diff)
luci-app-mwan3: add rtmon interval option
Add the configuration option rtmon to luci. With this parameter we could adjust how often the routing table get synced between main routing table and the interface routing table. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
index f8dd741fb..aa08d25f6 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
@@ -3,7 +3,7 @@
local net = require "luci.model.network".init()
-local s, m, local_source, mask
+local s, m, local_source, mask, rtmon
m = Map("mwan3", translate("MWAN - Globals"))
@@ -30,4 +30,17 @@ mask = s:option(
mask.datatype = "hex(4)"
mask.default = "0xff00"
+rtmon = s:option(
+ Value,
+ "rtmon_interval",
+ translate("Update interval"),
+ translate("How often should rtmon update the interface routing table"))
+rtmon.datatype = "integer"
+rtmon.default = "5"
+rtmon:value("1", translatef("%d second", 1))
+rtmon:value("3", translatef("%d seconds", 3))
+rtmon:value("5", translatef("%d seconds", 5))
+rtmon:value("7", translatef("%d seconds", 7))
+rtmon:value("10", translatef("%d seconds", 10))
+
return m