From 0ac85a440a0295acf5c3fd9abe84d46514647909 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 6 May 2019 08:22:39 +0200 Subject: luci-base: remove interface from zone upon deletion Fixes: #2690 Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/model/network.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/luci-base/luasrc/model/network.lua') diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index 67a2de4ed2..a36a23f321 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -622,6 +622,12 @@ function del_network(self, n) _uci:delete("wireless", s['.name'], "network") end end) + + local ok, fw = pcall(require, "luci.model.firewall") + if ok then + fw.init() + fw:del_network(n) + end end return r end -- cgit v1.2.3