summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2021-05-14 01:12:06 +0200
committerGitHub <noreply@github.com>2021-05-14 01:12:06 +0200
commitd8baf3db2d559fc13b3137ba9e3c6fa998f7e773 (patch)
tree7bb01bcf098421c5bdef61b932309ebfc9d8b9ad /lib/if.c
parentd390582e647f744d36d5be80a1fe7716d8bf0e50 (diff)
parent3bb513c399c2e7c8dd597b7399dd7c0f064842d0 (diff)
Merge pull request #8144 from LabNConsulting/chopps/ly2
libyang2
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/if.c b/lib/if.c
index f8a693d8f3..de2af435f6 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -266,16 +266,16 @@ void if_update_to_new_vrf(struct interface *ifp, vrf_id_t vrf_id)
char oldpath[XPATH_MAXLEN];
char newpath[XPATH_MAXLEN];
- if_dnode = yang_dnode_get(
+ if_dnode = yang_dnode_getf(
running_config->dnode,
"/frr-interface:lib/interface[name='%s'][vrf='%s']/vrf",
ifp->name, old_vrf->name);
if (if_dnode) {
- yang_dnode_get_path(if_dnode->parent, oldpath,
+ yang_dnode_get_path(lyd_parent(if_dnode), oldpath,
sizeof(oldpath));
yang_dnode_change_leaf(if_dnode, vrf->name);
- yang_dnode_get_path(if_dnode->parent, newpath,
+ yang_dnode_get_path(lyd_parent(if_dnode), newpath,
sizeof(newpath));
nb_running_move_tree(oldpath, newpath);
running_config->version++;