summaryrefslogtreecommitdiff
path: root/clients/cli
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-05-07 10:34:35 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-05-28 14:40:18 +0200
commit9c24c81ad09a0d9c177c81f04351439d571baa53 (patch)
tree99fe122e4cc762adfc2c628389ceb0a3cb3a35dc /clients/cli
parentf307034b9126cee1e474130f4c70645965bd29fe (diff)
downloadNetworkManager-9c24c81ad09a0d9c177c81f04351439d571baa53.tar.gz
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
Diffstat (limited to 'clients/cli')
-rw-r--r--clients/cli/devices.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c
index 0a0c3159e3..1285972876 100644
--- a/clients/cli/devices.c
+++ b/clients/cli/devices.c
@@ -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,