Skip to content
  • Thomas Haller's avatar
    core/platform: sort routes before adding them in nm_platform_ipX_route_sync() · 8959b6db
    Thomas Haller authored and Dan Williams's avatar Dan Williams committed
    
    
    A gateway route can only be added, if there exists a device route
    for that gateway. Therefore, nm_platform_ip4_route_sync() and
    nm_platform_ip6_route_sync() has to add the device routes first,
    before adding gateway routes.
    
    Note: usually for all configured addresses, there is also a device
    route for the subnet added by the kernel. This means, NM must first
    configure the addresses before route_sync, so that these implicit device
    routes already exist -- this is however already done correctly.
    
    Signed-off-by: default avatarThomas Haller <thaller@redhat.com>
    8959b6db