summaryrefslogtreecommitdiff
path: root/libnm/nm-device-team.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-08-05 14:13:42 -0400
committerDan Winship <danw@gnome.org>2014-09-04 09:18:43 -0400
commitab26964c56c535b44f10c0001689a3cced418217 (patch)
tree90c4a2a2fabd4e3739341aeed0f03f6cf342dad6 /libnm/nm-device-team.c
parent7314256b77de1ffee2029e1e409de87d8e260621 (diff)
downloadNetworkManager-ab26964c56c535b44f10c0001689a3cced418217.tar.gz
all: stop using virtual interface-name properties
The virtual :interface-name properties (eg, NMDeviceBond:interface-name) are deprecated in favor of NMSettingConnection:interface-name, and nm_connection_verify() ensures that their values are kept in sync. So (a) there is no need to set those properties when we can just set NMSettingConnection:interface-name instead, and (b) we can replace any calls to the setting-specific get_interface_name() methods with nm_connection_get_interface_name() or nm_setting_connection_get_interface_name().
Diffstat (limited to 'libnm/nm-device-team.c')
-rw-r--r--libnm/nm-device-team.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-device-team.c b/libnm/nm-device-team.c
index 892d551666..0a6fed379a 100644
--- a/libnm/nm-device-team.c
+++ b/libnm/nm-device-team.c
@@ -152,7 +152,7 @@ connection_compatible (NMDevice *device, NMConnection *connection, GError **erro
}
dev_iface_name = nm_device_get_iface (device);
- team_iface_name = nm_setting_team_get_interface_name (s_team);
+ team_iface_name = nm_setting_connection_get_interface_name (s_con);
if (g_strcmp0 (dev_iface_name, team_iface_name) != 0) {
g_set_error (error, NM_DEVICE_TEAM_ERROR, NM_DEVICE_TEAM_ERROR_INTERFACE_MISMATCH,
"The interfaces of the device and the connection didn't match.");