mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 12:00:11 +01:00
core: don't reset existing routes when merging IP setting
Don't reset existing routes if ipvx.ignore-auto-routes=yes: callers should already avoid adding them when not needed. Previously we would also reset the manual gateway route just added. Fixes:5c299454b4https://bugzilla.gnome.org/show_bug.cgi?id=790423 (cherry picked from commita0cd75b20c)
This commit is contained in:
parent
c7accc92d5
commit
ba630b828b
2 changed files with 0 additions and 4 deletions
|
|
@ -954,8 +954,6 @@ nm_ip4_config_merge_setting (NMIP4Config *self,
|
|||
}
|
||||
|
||||
/* Routes */
|
||||
if (nm_setting_ip_config_get_ignore_auto_routes (setting))
|
||||
nm_ip4_config_reset_routes (self);
|
||||
for (i = 0; i < nroutes; i++) {
|
||||
NMIPRoute *s_route = nm_setting_ip_config_get_route (setting, i);
|
||||
NMPlatformIP4Route route;
|
||||
|
|
|
|||
|
|
@ -629,8 +629,6 @@ nm_ip6_config_merge_setting (NMIP6Config *self,
|
|||
}
|
||||
|
||||
/* Routes */
|
||||
if (nm_setting_ip_config_get_ignore_auto_routes (setting))
|
||||
nm_ip6_config_reset_routes (self);
|
||||
for (i = 0; i < nroutes; i++) {
|
||||
NMIPRoute *s_route = nm_setting_ip_config_get_route (setting, i);
|
||||
NMPlatformIP6Route route;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue