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:
Jiri Pirko 2013-08-16 16:08:30 +02:00 committed by Dan Winship
parent bd1eaaa4a0
commit fb454b2c33

View file

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