mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 06:30:08 +01:00
manager: don't assign a new link to a device of a different link type
This commit is contained in:
parent
097d41b8e6
commit
abaa852866
1 changed files with 3 additions and 0 deletions
|
|
@ -2341,6 +2341,9 @@ platform_link_added (NMManager *self,
|
|||
gboolean compatible = TRUE;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
if (nm_device_get_link_type (candidate) != plink->type)
|
||||
continue;
|
||||
|
||||
if (strcmp (nm_device_get_iface (candidate), plink->name))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue