[RFE] Add option to not detach unmanaged interfaces from a bridge on rollback
Hello, I'd like to have an option to configure NetworkManager not to detach unmanaged interfaces from a bridge when a rollback is performed.
We have the following use case in Kubevirt/OpenShift Virtualization:
-
We create a bridge
-
In the meantime, users create pods/virtual machines, connected to this bridge. Our linux-bridge CNI connects each pod to the bridge by creating a veth pair, and attaching one end of the veth to the linux bridge and the other to the pod. And these veth interfaces are not managed by NetworkManager.
-
Down the road, user may decide to update the existing linux-bridge in any way. At this point, many VMs/pods may be connected to it. After applying the updated desiredState, we run a probe checking that for example DNS is still reachable or default gateway is still reachable. If this check fails, we perform a rollback.
Now the issue is that when we perform rollback, all the unmanaged veths are detached. This is potentially very destructive as hundreds of VMs/pods may lose connectivity.
What we need is a way to make sure that unmanaged brigde ports are not detached. Attaching a NM jornal lognm-veths-detached-on-rollback.log