コード例 #1
0
ファイル: ipv6.py プロジェクト: pavitra14/nmstate
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
コード例 #2
0
def get_route_config():
    return nm_route.get_config(acs_and_ip_profiles(nmclient.client()))
コード例 #3
0
ファイル: ipv4.py プロジェクト: tyll/nmstate
def get_route_config(context):
    return nm_route.get_config(acs_and_ip_profiles(context))