summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Cardace <acardace@redhat.com>2021-01-21 16:49:46 +0100
committerAntonio Cardace <acardace@redhat.com>2021-02-02 09:51:57 +0100
commit91766a6910cde49bdcca0bcdc902583b1009378f (patch)
treea240947f700b595a41f71485fea270e2a3ebb6a1
parent6ddfee37516156882c8f322b0488f60cbe87bca3 (diff)
downloadNetworkManager-91766a6910cde49bdcca0bcdc902583b1009378f.tar.gz
device: make devices 'external' when going to 'unmanaged' state
This is the default state for new devices hence they should return back to this state when unmanaged. Signed-off-by: Antonio Cardace <acardace@redhat.com>
-rw-r--r--src/devices/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index a45b6b9e04..8c5b9c52e6 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -16390,9 +16390,9 @@ _set_state_full(NMDevice *self, NMDeviceState state, NMDeviceStateReason reason,
nm_device_hw_addr_reset(self, "unmanage");
set_nm_ipv6ll(self, FALSE);
restore_ip6_properties(self);
- break;
}
}
+ nm_device_sys_iface_state_set(self, NM_DEVICE_SYS_IFACE_STATE_EXTERNAL);
break;
case NM_DEVICE_STATE_UNAVAILABLE:
if (old_state == NM_DEVICE_STATE_UNMANAGED) {