]> git.proxmox.com Git - mirror_frr.git/commitdiff
isisd: Correct MPLS-TE CLI to new northbound API
authorOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 26 Apr 2019 09:20:02 +0000 (11:20 +0200)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 26 Apr 2019 09:20:02 +0000 (11:20 +0200)
Due to recent modification in northbound API, replace
yang_dnode_get_entry() call by nb_running_get_entry() call.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
isisd/isis_northbound.c

index f744758eb9097976a72bde7f859102a3065ee6eb..7838ca6d377edf1c74cc4e3b975dfd2f7880b045 100644 (file)
@@ -1378,7 +1378,7 @@ static int isis_instance_mpls_te_create(enum nb_event event,
        if (event != NB_EV_APPLY)
                return NB_OK;
 
-       area = yang_dnode_get_entry(dnode, true);
+       area = nb_running_get_entry(dnode, NULL, true);
        if (area->mta == NULL) {
 
                struct mpls_te_area *new;
@@ -1437,7 +1437,7 @@ static int isis_instance_mpls_te_destroy(enum nb_event event,
        if (event != NB_EV_APPLY)
                return NB_OK;
 
-       area = yang_dnode_get_entry(dnode, true);
+       area = nb_running_get_entry(dnode, NULL, true);
        if (IS_MPLS_TE(area->mta))
                area->mta->status = disable;
        else
@@ -1473,7 +1473,7 @@ static int isis_instance_mpls_te_router_address_modify(enum nb_event event,
        if (event != NB_EV_APPLY)
                return NB_OK;
 
-       area = yang_dnode_get_entry(dnode, true);
+       area = nb_running_get_entry(dnode, NULL, true);
        /* only proceed if MPLS-TE is enabled */
        if (!IS_MPLS_TE(area->mta))
                return NB_OK;
@@ -1497,7 +1497,7 @@ static int isis_instance_mpls_te_router_address_destroy(enum nb_event event,
        if (event != NB_EV_APPLY)
                return NB_OK;
 
-       area = yang_dnode_get_entry(dnode, true);
+       area = nb_running_get_entry(dnode, NULL, true);
        /* only proceed if MPLS-TE is enabled */
        if (!IS_MPLS_TE(area->mta))
                return NB_OK;