cli: don't force interface name on add_and_activate

The daemon is already responsible for pinning the connection to a
particular device. In fact, it may choose to use a different means than
an interface name, such as a MAC address or a gsm.device-id. Remove it
from the client.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/140
This commit is contained in:
Lubomir Rintel 2019-05-07 10:34:35 +02:00
parent f307034b91
commit 9c24c81ad0

View file

@ -1897,7 +1897,6 @@ create_connect_connection_for_device (AddAndActivateInfo *info)
nm_connection_add_setting (connection, NM_SETTING (s_con));
g_object_set (s_con,
NM_SETTING_CONNECTION_ID, nm_device_get_iface (info->device),
NM_SETTING_CONNECTION_INTERFACE_NAME, nm_device_get_iface (info->device),
NULL);
nm_client_add_and_activate_connection_async (info->nmc->client,