From 004b0be97d738f230cecfbbc8441565ee0048a9d Mon Sep 17 00:00:00 2001 From: Olivier Dugeon Date: Fri, 26 Apr 2019 11:20:02 +0200 Subject: [PATCH] isisd: Correct MPLS-TE CLI to new northbound API Due to recent modification in northbound API, replace yang_dnode_get_entry() call by nb_running_get_entry() call. Signed-off-by: Olivier Dugeon --- isisd/isis_northbound.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/isisd/isis_northbound.c b/isisd/isis_northbound.c index f744758eb9..7838ca6d37 100644 --- a/isisd/isis_northbound.c +++ b/isisd/isis_northbound.c @@ -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; -- 2.39.5