luci-app-mwan3: change flush_conntrack option to list option 2744/head
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 22 May 2019 08:56:31 +0000 (10:56 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 3 Jun 2019 12:22:54 +0000 (14:22 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua

index c8f6104ea18de76f201bb4db34db9856eb25184f..e70664d35cd5c270aafb8f9370f007e3c8dcba5e 100644 (file)
@@ -234,13 +234,12 @@ up:value("8")
 up:value("9")
 up:value("10")
 
-flush = mwan_interface:option(ListValue, "flush_conntrack", translate("Flush conntrack table"),
+flush = mwan_interface:option(StaticList, "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"))
+flush:value("ifup", translate("ifup (netifd)"))
+flush:value("ifdown", translate("ifdown (netifd)"))
+flush:value("connected", translate("connected (mwan3)"))
+flush:value("disconnected", translate("disconnected (mwan3)"))
 
 metric = mwan_interface:option(DummyValue, "metric", translate("Metric"),
        translate("This displays the metric assigned to this interface in /etc/config/network"))