From 585b6b3111f68328147177667c9eb9fcbf2a18eb Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 31 Mar 2017 14:52:45 +0200 Subject: luci-app-mwan3: add new ping size param Signed-off-by: Florian Eckert --- .../luasrc/model/cbi/mwan/interfaceconfig.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'applications/luci-app-mwan3') diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua index 387ff01a8d..be87a00425 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua @@ -119,6 +119,21 @@ count = mwan_interface:option(ListValue, "count", translate("Ping count")) count:value("4") count:value("5") +size = mwan_interface:option(Value, "size", translate("Ping size")) + size.default = "56" + size:value("8") + size:value("24") + size:value("56") + size:value("120") + size:value("248") + size:value("504") + size:value("1016") + size:value("1472") + size:value("2040") + size.datatype = "range(1, 65507)" + size.rmempty = false + size.optional = false + timeout = mwan_interface:option(ListValue, "timeout", translate("Ping timeout")) timeout.default = "2" timeout:value("1", translate("1 second")) -- cgit v1.2.3 From 7d5579b3e0a1bd17d3738bcebbc9492f284b2d55 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 31 Mar 2017 14:56:06 +0200 Subject: luci-app-mwan3: add new conntrack flash param Signed-off-by: Florian Eckert --- .../luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'applications/luci-app-mwan3') diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua index be87a00425..23703d4eae 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua @@ -190,6 +190,14 @@ up = mwan_interface:option(ListValue, "up", translate("Interface up"), up:value("9") up:value("10") +flush = mwan_interface:option(ListValue, "flush_conntrack", translate("Flush conntrack table"), + translate("Flush global firewall conntrack table on interface events")) + flush.default = "never" + flush:value("ifup", translate("ifup")) + flush:value("ifdown", translate("ifdown")) + flush:value("never", translate("never")) + flush:value("always", translate("always")) + metric = mwan_interface:option(DummyValue, "metric", translate("Metric"), translate("This displays the metric assigned to this interface in /etc/config/network")) metric.rawhtml = true -- cgit v1.2.3 From e1e5743a1af55fadd4f5fb01f482931654f3dfd9 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 31 Mar 2017 14:57:27 +0200 Subject: luci-app-mwan3: add new ip family param Signed-off-by: Florian Eckert --- .../luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'applications/luci-app-mwan3') diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua index 23703d4eae..b1820cc68a 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua @@ -102,6 +102,11 @@ enabled = mwan_interface:option(ListValue, "enabled", translate("Enabled")) enabled:value("1", translate("Yes")) enabled:value("0", translate("No")) +family = mwan_interface:option(ListValue, "family", translate("Internet Protocol")) + family.default = "ipv4" + family:value("ipv4", translate("IPv4")) + family:value("ipv6", translate("IPv6")) + track_ip = mwan_interface:option(DynamicList, "track_ip", translate("Tracking IP"), translate("This IP address will be pinged to dermine if the link is up or down. Leave blank to assume interface is always online")) track_ip.datatype = "ipaddr" -- cgit v1.2.3