luci-base: remove interface from zone upon deletion
Fixes: #2690 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
a5a731a660
commit
0ac85a440a
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue