luci-mod-network: prevent loading non-existent protocol/bonding
authorPaul Donald <[email protected]>
Thu, 30 Oct 2025 13:30:27 +0000 (14:30 +0100)
committerPaul Donald <[email protected]>
Thu, 30 Oct 2025 13:30:46 +0000 (14:30 +0100)
Bonding is configured under interface properties, and handled by netifd.
luci-proto-bonding was removed, even if the proto-bonding package is still
useful. This change prevents the trace-back from attempting to load
luci-proto-bonding.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/network.js

index 7ce3e44c5268044867c6d91b3cf5958f3fcafc64..a6def061e4ef7243d6bafd1e92c091947b0f744a 100644 (file)
@@ -103,6 +103,9 @@ var _init = null,
 
 function getProtocolHandlers(cache) {
        return callNetworkProtoHandlers().then(function(protos) {
+               /* Prevent attempt to load "protocol/bonding" */
+               delete protos.bonding;
+
                /* Register "none" protocol */
                if (!protos.hasOwnProperty('none'))
                        Object.assign(protos, { none: { no_device: false } });