mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 13:08:10 +02:00
device: don't cleanup external device when moving to state DISCONNECTED
This commit is contained in:
parent
97abbbb987
commit
b2e2f9f4e7
1 changed files with 8 additions and 1 deletions
|
|
@ -16105,8 +16105,15 @@ _set_state_full(NMDevice *self, NMDeviceState state, NMDeviceStateReason reason,
|
||||||
* userspace IPv6LL enabled.
|
* userspace IPv6LL enabled.
|
||||||
*/
|
*/
|
||||||
_dev_addrgenmode6_set(self, NM_IN6_ADDR_GEN_MODE_NONE);
|
_dev_addrgenmode6_set(self, NM_IN6_ADDR_GEN_MODE_NONE);
|
||||||
|
if (priv->sys_iface_state != NM_DEVICE_SYS_IFACE_STATE_MANAGED) {
|
||||||
|
nm_device_cleanup(self,
|
||||||
|
reason,
|
||||||
|
priv->sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_REMOVED
|
||||||
|
? CLEANUP_TYPE_REMOVED
|
||||||
|
: CLEANUP_TYPE_KEEP);
|
||||||
|
} else
|
||||||
|
nm_device_cleanup(self, reason, CLEANUP_TYPE_DECONFIGURE);
|
||||||
|
|
||||||
nm_device_cleanup(self, reason, CLEANUP_TYPE_DECONFIGURE);
|
|
||||||
} else if (old_state < NM_DEVICE_STATE_DISCONNECTED) {
|
} else if (old_state < NM_DEVICE_STATE_DISCONNECTED) {
|
||||||
if (priv->sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_MANAGED) {
|
if (priv->sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_MANAGED) {
|
||||||
/* Ensure IPv6 is set up as it may not have been done when
|
/* Ensure IPv6 is set up as it may not have been done when
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue