diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-05-06 08:22:39 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-05-06 08:22:39 +0200 |
commit | 0ac85a440a0295acf5c3fd9abe84d46514647909 (patch) | |
tree | a8e29c0f8bb0f2cf2e72eb9bc3748cca103f74b5 /modules/luci-base/luasrc/model/network.lua | |
parent | a5a731a660452ec3846976506585ab0d9a6e6d1f (diff) |
luci-base: remove interface from zone upon deletion
Fixes: #2690
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/model/network.lua')
-rw-r--r-- | modules/luci-base/luasrc/model/network.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 |