mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02:00
team: don't kill teamd for external devices
The teamd instance must not be killed if the device was externally activated. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/158 https://bugzilla.redhat.com/show_bug.cgi?id=1693142
This commit is contained in:
parent
95cc384377
commit
008a4b4215
1 changed files with 3 additions and 0 deletions
|
|
@ -694,6 +694,9 @@ deactivate (NMDevice *device)
|
||||||
NMDeviceTeam *self = NM_DEVICE_TEAM (device);
|
NMDeviceTeam *self = NM_DEVICE_TEAM (device);
|
||||||
NMDeviceTeamPrivate *priv = NM_DEVICE_TEAM_GET_PRIVATE (self);
|
NMDeviceTeamPrivate *priv = NM_DEVICE_TEAM_GET_PRIVATE (self);
|
||||||
|
|
||||||
|
if (nm_device_sys_iface_state_is_external (device))
|
||||||
|
return;
|
||||||
|
|
||||||
if (priv->teamd_pid || priv->tdc)
|
if (priv->teamd_pid || priv->tdc)
|
||||||
_LOGI (LOGD_TEAM, "deactivation: stopping teamd...");
|
_LOGI (LOGD_TEAM, "deactivation: stopping teamd...");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue