mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 17:20:11 +01:00
nm-manager: do not fail if team device already exists
Similar has been done with bond and bridge Signed-off-by: Jiri Pirko <jiri@resnulli.us>
This commit is contained in:
parent
bd1eaaa4a0
commit
fb454b2c33
1 changed files with 2 additions and 1 deletions
|
|
@ -1371,7 +1371,8 @@ system_create_virtual_device (NMManager *self, NMConnection *connection)
|
|||
|
||||
device = nm_device_bond_new (iface);
|
||||
} else if (nm_connection_is_type (connection, NM_SETTING_TEAM_SETTING_NAME)) {
|
||||
if (!nm_platform_team_add (iface)) {
|
||||
if (!nm_platform_team_add (iface)
|
||||
&& nm_platform_get_error () != NM_PLATFORM_ERROR_EXISTS) {
|
||||
nm_log_warn (LOGD_DEVICE, "(%s): failed to add team master interface for '%s'",
|
||||
iface, nm_connection_get_id (connection));
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue