summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-07-26 17:20:00 +0200
committerThomas Haller <thaller@redhat.com>2022-07-26 17:20:00 +0200
commitc47b0201affd382c45df84db642b86fe3ad87e79 (patch)
treee7ca5bf8a9672421d9652e1bf0df31fddb525c73
parenta10ac7fa5a557ea436c4dc11fde196684fb696b5 (diff)
fix: dont return NM_DEVICE_CAP_IS_SOFTWARE for loopbackth/pr/1287
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.
-rw-r--r--src/core/devices/nm-device-loopback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/devices/nm-device-loopback.c b/src/core/devices/nm-device-loopback.c
index 269c772a4f..a5cfd56ca3 100644
--- a/src/core/devices/nm-device-loopback.c
+++ b/src/core/devices/nm-device-loopback.c
@@ -38,7 +38,7 @@ G_DEFINE_TYPE(NMDeviceLoopback, nm_device_loopback, NM_TYPE_DEVICE)
static NMDeviceCapabilities
get_generic_capabilities(NMDevice *dev)
{
- return NM_DEVICE_CAP_IS_SOFTWARE;
+ return NM_DEVICE_CAP_NONE;
}
static guint32