mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 09:20:23 +01:00
manager: skip activation of a virtual device if master is missing
Don't realize a virtual device if the master is missing because in such case the autoactivation can't start and a stale link will be created.
This commit is contained in:
parent
2b17f246f0
commit
336bfcabc4
1 changed files with 14 additions and 0 deletions
|
|
@ -2011,6 +2011,20 @@ system_create_virtual_device (NMManager *self, NMConnection *connection)
|
|||
return device;
|
||||
}
|
||||
|
||||
if (!find_master (self,
|
||||
connection,
|
||||
device,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&error)) {
|
||||
_LOG3D (LOGD_DEVICE, connection,
|
||||
"skip activation: %s",
|
||||
error->message);
|
||||
g_error_free (error);
|
||||
return device;
|
||||
}
|
||||
|
||||
/* Create backing resources if the device has any autoconnect connections */
|
||||
connections = nm_settings_get_connections_clone (priv->settings, NULL,
|
||||
NULL, NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue