luci-base: remove further related section types on deleting network
authorJo-Philipp Wich <[email protected]>
Fri, 22 Oct 2021 17:44:43 +0000 (19:44 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 22 Oct 2021 18:37:34 +0000 (20:37 +0200)
commit13df80d4298b4bb89b8e1c985e1e4dbf9fa6eee7
tree219bc205bc4772d6e8d402f046c5e50ff889a23a
parent4d3de0e1bbfb0b5323293facb45260fa6ce38e5b
luci-base: remove further related section types on deleting network

When removing a `config interface` section in `/etc/config/network`, drop
related `rule` and `rule6` sections too, as well as related `dhcp` sections
in `/etc/config/dhcp`.

Ref: https://forum.openwrt.org/t/grooming-etc-config/109764/7
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 63034c36073bedf87db18d05d3fe8cca016c6490)
modules/luci-base/htdocs/luci-static/resources/network.js