applications/luci-firewall: properly handle zone removal
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Jul 2011 13:11:12 +0000 (13:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Jul 2011 13:11:12 +0000 (13:11 +0000)
applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua

index baced4a..79604c2 100644 (file)
@@ -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)