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")
|
_uci:delete("wireless", s['.name'], "network")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
local ok, fw = pcall(require, "luci.model.firewall")
|
||||||
|
if ok then
|
||||||
|
fw.init()
|
||||||
|
fw:del_network(n)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return r
|
return r
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue