summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-03-11 09:37:18 +0100
committerThomas Haller <thaller@redhat.com>2016-04-04 15:33:17 +0200
commit35059ed48e79e06a5f940230dbace1947db8cc34 (patch)
treee9816f9cf92a2e8a2c102defc701d977ee9a0695
parente1edcda317f2368b1a126a91da1383d676aebd63 (diff)
downloadNetworkManager-35059ed48e79e06a5f940230dbace1947db8cc34.tar.gz
device: allow NM-owned device to be assumed
Software devices created by NM should be kept up when quitting so that they can be assumed upon restart. But now we consider devices created by NM (those with the @is_nm_owned flag) not capable of assuming connections and therefore we tear them down and deconfigure when quitting. Change this and ignore @is_nm_owned when deciding if a device can be re-assumed.
-rw-r--r--src/devices/nm-device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index ff4f43d34e..619eda9bba 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -3066,8 +3066,7 @@ nm_device_check_slave_connection_compatible (NMDevice *self, NMConnection *slave
static gboolean
nm_device_can_assume_connections (NMDevice *self)
{
- return !!NM_DEVICE_GET_CLASS (self)->update_connection
- && !NM_DEVICE_GET_PRIVATE (self)->is_nm_owned;
+ return !!NM_DEVICE_GET_CLASS (self)->update_connection;
}
/**