luci-app-mwan3: add new conntrack flash param
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 31 Mar 2017 12:56:06 +0000 (14:56 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 31 Mar 2017 13:01:51 +0000 (15:01 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua

index be87a0042543037c6a07a6afc253f5c335260c85..23703d4eae36767e0e4036c15351ffcf872aef86 100644 (file)
@@ -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