diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-11-19 17:03:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 17:03:00 +0100 |
commit | cac886dd5392bd26dcbca5e4e3c5e72d1e321b75 (patch) | |
tree | 443b70972c34520acbf6ae77ed48749be1fde417 /lib/yang.h | |
parent | Merge pull request #7563 from donaldsharp/why_not_cut_n_paste (diff) | |
parent | pimd: fix indentation issues (diff) | |
download | frr-cac886dd5392bd26dcbca5e4e3c5e72d1e321b75.tar.xz frr-cac886dd5392bd26dcbca5e4e3c5e72d1e321b75.zip |
Merge pull request #6145 from patrasar/pim_nb_code_upstream
pimd: northbound backend code
Diffstat (limited to 'lib/yang.h')
-rw-r--r-- | lib/yang.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h index 0cd6a4a6f..b8bf07ee7 100644 --- a/lib/yang.h +++ b/lib/yang.h @@ -587,6 +587,11 @@ extern uint32_t yang_get_list_elements_count(const struct lyd_node *node); /* To get the immediate child of a dnode */ const struct lyd_node *yang_dnode_get_child(const struct lyd_node *dnode); +/* API to check if the given node is last node in the list */ +bool yang_is_last_list_dnode(const struct lyd_node *dnode); + +/* API to check if the given node is last node in the data tree level */ +bool yang_is_last_level_dnode(const struct lyd_node *dnode); #ifdef __cplusplus } |