manager: don't assign a new link to a device of a different link type

This commit is contained in:
Lubomir Rintel
2017-10-10 11:14:05 +02:00
parent 097d41b8e6
commit abaa852866

View File

@@ -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;