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

index baced4a888636d581fa6b8c564cd3be410a1f4de..79604c263f61eb542eee94cdbcd256e0e3091a2a 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)