From 038e45d29ab634af9d733024fdcdc20789db266d Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 14 Nov 2013 10:12:25 -0600 Subject: [PATCH] Revert "device: bind the generated loopback connection to 'lo' interface" This reverts commit 9a019f1fb5b7d99a7d4ec7af89212402ea81793a. Generic connections should be bound to their interface names in a more generic way instead of in nm-device.c. The Generic device itself should set the attributes it needs when generating the connection, like other device types do. This will be done in a following commit. --- src/devices/nm-device.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 262f62732..9f89c8605 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -1694,12 +1694,6 @@ nm_device_generate_connection (NMDevice *device) g_object_set (s_con, NM_SETTING_CONNECTION_TYPE, klass->connection_type, NULL); nm_connection_add_setting (connection, s_con); - /* Bind loopback connection to 'lo' device */ - if (nm_platform_link_get_type (ifindex) == NM_LINK_TYPE_LOOPBACK) - g_object_set (s_con, - NM_SETTING_CONNECTION_INTERFACE_NAME, ifname, - NULL); - /* If the device is a slave, update various slave settings */ if (ifindex) master_ifindex = nm_platform_link_get_master (ifindex);