summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-05-16 17:36:56 +0200
committerThomas Haller <thaller@redhat.com>2016-05-16 17:46:02 +0200
commite9986fe4ab7e10827857f288343c7accfb695db3 (patch)
tree4568dd3b0f46ce19f648b695296edce629735a70
parent62a0e6938427d40e5007d5860ed6aaeab51c591a (diff)
downloadNetworkManager-th/device-rename-unmanaged-bgo766404.tar.gz
device: update unamanged by user-config when device gets renamedth/device-rename-unmanaged-bgo766404
https://bugzilla.gnome.org/show_bug.cgi?id=766404
-rw-r--r--src/devices/nm-device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 1b25d957a2..1501cc24f6 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -1593,6 +1593,7 @@ device_link_changed (NMDevice *self)
const NMPlatformLink *pllink;
int ifindex;
gboolean was_up;
+ gboolean update_unmanaged_specs = FALSE;
priv->device_link_changed_id = 0;
@@ -1639,6 +1640,8 @@ device_link_changed (NMDevice *self)
/* If the device has no explicit ip_iface, then changing iface changes ip_iface too. */
ip_ifname_changed = !priv->ip_iface;
+ update_unmanaged_specs = TRUE;
+
_notify (self, PROP_IFACE);
if (ip_ifname_changed)
_notify (self, PROP_IP_IFACE);
@@ -1712,6 +1715,9 @@ device_link_changed (NMDevice *self)
}
}
+ if (update_unmanaged_specs)
+ nm_device_set_unmanaged_by_user_config (self, nm_connection_provider_get_unmanaged_specs (priv->con_provider));
+
return G_SOURCE_REMOVE;
}