Exemple #1
0
def get_route_config():
    routes = nm_route.get_config(acs_and_ip_profiles(nmclient.client()))
    for route in routes:
        if route[Route.METRIC] == 0:
            # Kernel will convert 0 to IPV6_DEFAULT_ROUTE_METRIC.
            route[Route.METRIC] = IPV6_DEFAULT_ROUTE_METRIC

    return routes
Exemple #2
0
def get_route_config():
    return nm_route.get_config(acs_and_ip_profiles(nmclient.client()))
Exemple #3
0
def get_route_config(context):
    return nm_route.get_config(acs_and_ip_profiles(context))