summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2019-04-26 11:20:02 +0200
committerOlivier Dugeon <olivier.dugeon@orange.com>2019-04-26 11:20:02 +0200
commit004b0be97d738f230cecfbbc8441565ee0048a9d (patch)
tree04e5f83e9e8542ee0168e7bc8bf4a66897e4c6e2 /isisd
parentisisd: Add IS-IS-TE support per Area (diff)
downloadfrr-004b0be97d738f230cecfbbc8441565ee0048a9d.tar.xz
frr-004b0be97d738f230cecfbbc8441565ee0048a9d.zip
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 <olivier.dugeon@orange.com>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_northbound.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/isisd/isis_northbound.c b/isisd/isis_northbound.c
index f744758eb..7838ca6d3 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;