• Thomas Haller's avatar
    policy: consider additional assumed routes when synchronizing the default route · b4b67c47
    Thomas Haller authored
    Don't only consider the best route of assumed devices when syncing the route
    metrics. This fixes the following scenario:
    Have em1 assumed, with two default routes (metric 20 and 21).
    When activating em2, NMDefaultRouteManager would  have determined
    21 as the effective metric, thus replacing the assumed route of em1.
    Since we don't want to touch assumed interfaces, it is wrong to
    replace their default routes.
    Instead, keep track of all the assumed default routes and consider their
    metrics when choosing effective_metric.
    Signed-off-by: Thomas Haller's avatarThomas Haller <thaller@redhat.com>
nm-default-route-manager.c 34.3 KB