- remove empty value from src zone, param is mandatory
- add empty value to outgoing zone to allow removal of this param
- change default action to "accept" to prevent unwanted lockouts
s.anonymous = true
iface = s:option(ListValue, "src")
-iface:value("")
iface.rmempty = true
oface = s:option(ListValue, "dest")
+oface:value("")
oface.optional = true
luci.model.uci.cursor():foreach("firewall", "zone",
jump = s:option(ListValue, "target")
jump.rmempty = true
+jump.default = "ACCEPT"
jump:value("DROP", translate("fw_drop"))
jump:value("ACCEPT", translate("fw_accept"))
jump:value("REJECT", translate("fw_reject"))