summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-09-16 08:38:23 +0200
committerThomas Haller <thaller@redhat.com>2021-09-16 08:38:25 +0200
commit571ce653fdf3ccd0a76389967e3118b4be6e7bd1 (patch)
treeafd6a7f227b9f51f2fac3004983136597c8f3a49
parentc2ab21a1b92e2e87fc64acd17c41f7c8f1c76de5 (diff)
downloadNetworkManager-571ce653fdf3ccd0a76389967e3118b4be6e7bd1.tar.gz
device: set up device also while "assuming"
"assuming" means to gracefully take over after restart. The result should be a working configuration with a device fully managed by NetworkManager. If we are assuming, and the interface is down we still want to set it up.
-rw-r--r--src/core/devices/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
index a2b24ec90e..0ee21bfb82 100644
--- a/src/core/devices/nm-device.c
+++ b/src/core/devices/nm-device.c
@@ -11965,7 +11965,7 @@ activate_stage5_ip_config_result_x(NMDevice *self, int addr_family)
g_return_if_fail(ip_ifindex);
if (!nm_platform_link_is_up(nm_device_get_platform(self), ip_ifindex)
- && !nm_device_sys_iface_state_is_external_or_assume(self)) {
+ && !nm_device_sys_iface_state_is_external(self)) {
nm_platform_link_change_flags(nm_device_get_platform(self), ip_ifindex, IFF_UP, TRUE);
if (!nm_platform_link_is_up(nm_device_get_platform(self), ip_ifindex))
_LOGW(LOGD_DEVICE,