mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 22:40:10 +01:00
ip-tunnel: don't update_properties() during update_connection()/check_connection_compatible()
The device properties are obtained via netlink, thus we get proper platform notifications whenever they change. So the device properties always reflect the platform state and there is no need to refresh it during update_connection()/check_connection_compatible().
This commit is contained in:
parent
2b51ecc9e5
commit
b7eb622c24
1 changed files with 0 additions and 4 deletions
|
|
@ -370,8 +370,6 @@ update_connection (NMDevice *device, NMConnection *connection)
|
|||
nm_connection_add_setting (connection, (NMSetting *) s_ip_tunnel);
|
||||
}
|
||||
|
||||
update_properties (device);
|
||||
|
||||
if (nm_setting_ip_tunnel_get_mode (s_ip_tunnel) != priv->mode)
|
||||
g_object_set (G_OBJECT (s_ip_tunnel), NM_SETTING_IP_TUNNEL_MODE, priv->mode, NULL);
|
||||
|
||||
|
|
@ -505,8 +503,6 @@ check_connection_compatible (NMDevice *device, NMConnection *connection)
|
|||
if (!s_ip_tunnel)
|
||||
return FALSE;
|
||||
|
||||
update_properties (device);
|
||||
|
||||
/* Check parent interface; could be an interface name or a UUID */
|
||||
parent = nm_setting_ip_tunnel_get_parent (s_ip_tunnel);
|
||||
if (parent) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue