diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-11-19 11:03:00 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 11:03:00 -0500 | 
| commit | cac886dd5392bd26dcbca5e4e3c5e72d1e321b75 (patch) | |
| tree | 443b70972c34520acbf6ae77ed48749be1fde417 /lib/yang.h | |
| parent | e01396e1eaa8ae42bb92d446d2378b7aa34c3118 (diff) | |
| parent | 1dac87c88d9e45c77a341e79865605cb1b058d4f (diff) | |
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 0cd6a4a6f2..b8bf07ee7e 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  }  | 
