From 6ec540c46d19c83e65df990db6000a86e245d463 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 16 Oct 2018 12:43:18 +0200 Subject: 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 --- .../luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3