mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 08:50:12 +01:00
core: fix bridge device creation
Since 2688ae4950, bridge device creation
fails with "(br0): cannot use existing bridge for 'Bridge'" warning.
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
16fa0a7a89
commit
19b7fe5ca2
1 changed files with 1 additions and 1 deletions
|
|
@ -1439,7 +1439,7 @@ system_create_virtual_device (NMManager *self, NMConnection *connection)
|
|||
device = nm_device_team_new_for_connection (connection);
|
||||
} else if (nm_connection_is_type (connection, NM_SETTING_BRIDGE_SETTING_NAME)) {
|
||||
/* FIXME: remove when we handle bridges non-destructively */
|
||||
if (!nm_platform_link_get_ifindex (iface) > 0 && !bridge_created_by_nm (self, iface)) {
|
||||
if (nm_platform_link_get_ifindex (iface) > 0 && !bridge_created_by_nm (self, iface)) {
|
||||
nm_log_warn (LOGD_DEVICE, "(%s): cannot use existing bridge for '%s'",
|
||||
iface, nm_connection_get_id (connection));
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue