Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect default gateway #1957

Merged
merged 1 commit into from Jan 19, 2021
Merged

detect default gateway #1957

merged 1 commit into from Jan 19, 2021

Commits on Jan 19, 2021

  1. support multipath to detect default gateway

    We were detecting the default gateway based in the assumption that
    the netlink library was populating the de Gw field with it, however,
    it turns out that when multipath is enabled that field is empty and
    the corresponding information is in the MultiPath field.
    
    Also, in order to obtain the default gateway, we were dumping all
    routes filtering by FAMILY_ALL, and iterating on the results to get
    the ones we are interested. We can filter directly by the IP Family instead,
    to avoid future possibles problems with the FAMILY_ALL interpretion.
    
    Signed-off-by: Antonio Ojea <aojea@redhat.com>
    Antonio Ojea committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    175c90c View commit details
    Browse the repository at this point in the history