summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model/cbi
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-10-16 12:43:18 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-11-14 09:19:08 +0100
commit6ec540c46d19c83e65df990db6000a86e245d463 (patch)
tree8eb65bfeb97e0825543476f00edcb20a65643672 /applications/luci-app-mwan3/luasrc/model/cbi
parent8517a25a80aa1b2f5e055d9ed8d61f33b1062749 (diff)
luci-app-mwan3: add rt_table_lookup option
Make list option rt_table_lookup configurable in luci. With this option we could define additional routing tables which get scanned by mwan3 and then get added to the connected ipset. The entries will be treated as connected network and will not get mangeld by mwan3. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua11
1 files changed, 10 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 aa08d25f6c..33faa1523c 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, rtmon
+local s, m, local_source, mask, rtmon, rtlookup
m = Map("mwan3", translate("MWAN - Globals"))
@@ -43,4 +43,13 @@ rtmon:value("5", translatef("%d seconds", 5))
rtmon:value("7", translatef("%d seconds", 7))
rtmon:value("10", translatef("%d seconds", 10))
+rtlookup = s:option(DynamicList,
+ "rt_table_lookup",
+ translate("Routing table lookup"),
+ translate("Also scan this Routing table for connected networks"))
+rtlookup.datatype = "integer"
+rtlookup:value("1", translatef("Routing table %d", 1))
+rtlookup:value("2", translatef("Routing table %d", 2))
+rtlookup:value("220", translatef("Routing table %d", 220))
+
return m