summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-firewall
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-11 13:11:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-11 13:11:12 +0000
commit7e484b857b9584f7cbc5083845ef9e81062e9f4f (patch)
tree881def3b2bed6ac1dc19c3a47215d6e205f244c2 /applications/luci-firewall
parent1a221ddfb9315a35af654363dde38650be5ad3d9 (diff)
applications/luci-firewall: properly handle zone removal
Diffstat (limited to 'applications/luci-firewall')
-rw-r--r--applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
index baced4a88..79604c263 100644
--- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
+++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
@@ -82,6 +82,10 @@ function s.create(self)
end
end
+function s.remove(self, section)
+ return fw:del_zone(section)
+end
+
info = s:option(DummyValue, "_info", translate("Zone ⇒ Forwardings"))
info.template = "cbi/firewall_zoneforwards"
function info.cfgvalue(self, section)