fix: dont return NM_DEVICE_CAP_IS_SOFTWARE for loopback

You cannot create or delete loopback devices. They are always there.
Sure, they are purely in software, but still.

If we return that loopback has NM_DEVICE_CAP_IS_SOFTWARE, there are
probably other places that needs to be fixed, where we need to special
case loopback for this reason.

It might be easier to just claim that loopback is not a software device.
This commit is contained in:
Thomas Haller 2022-07-26 17:20:00 +02:00
parent a10ac7fa5a
commit c47b0201af
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -38,7 +38,7 @@ G_DEFINE_TYPE(NMDeviceLoopback, nm_device_loopback, NM_TYPE_DEVICE)
static NMDeviceCapabilities static NMDeviceCapabilities
get_generic_capabilities(NMDevice *dev) get_generic_capabilities(NMDevice *dev)
{ {
return NM_DEVICE_CAP_IS_SOFTWARE; return NM_DEVICE_CAP_NONE;
} }
static guint32 static guint32