luci-base: network.js: add Protocol.deleteConfiguration() callback
authorJo-Philipp Wich <jo@mein.io>
Tue, 3 Mar 2020 20:12:44 +0000 (21:12 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 3 Mar 2020 20:31:50 +0000 (21:31 +0100)
commita6f445bf4ae43e669885d75cb7dd1a5b013c6ea6
treebcfe01e25480d23ec53285823486b408a59a7d7b
parentc7b5ee33438e773679e35106605f5fc2fbdf1d20
luci-base: network.js: add Protocol.deleteConfiguration() callback

Add a new Protocol.deleteConfiguration() callback function which can be
overridden by protocol handler to perform additional cleanup tasks, such
as unsetting related uci entries which are not part of the interface
configuration itself.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a22aba2fed7b95f241b70c215e23e5699a3ff9d9)
modules/luci-base/htdocs/luci-static/resources/network.js