diff options
author | Sarita Patra <saritap@vmware.com> | 2020-10-23 16:29:44 +0200 |
---|---|---|
committer | Sarita Patra <saritap@vmware.com> | 2020-11-06 12:42:00 +0100 |
commit | cf740d2e72604404d0b9353a17b9d56de5e32c05 (patch) | |
tree | 5425a3d59b31698cc6530ee7aef7566b04c1f33b /lib/yang.c | |
parent | pimd: Northbound implementation for ssm prefix-list, ssmpingd command (diff) | |
download | frr-cf740d2e72604404d0b9353a17b9d56de5e32c05.tar.xz frr-cf740d2e72604404d0b9353a17b9d56de5e32c05.zip |
pimd: Northbound implementation for msdp mesh group, msdp peer commands
ip_msdp_peer
no_ip_msdp_peer
ip_msdp_mesh_group_member
no_ip_msdp_mesh_group_member
ip_msdp_mesh_group_source
no_ip_msdp_mesh_group_source
no_ip_msdp_mesh_group
Yang Model:
augment /frr-routing:routing/frr-routing:control-plane-protocols/frr-routing:control-plane-protocol:
+--rw pim
+--rw address-family* [address-family]
+--rw address-family identityref
+--rw msdp-mesh-group!
| +--rw mesh-group-name? string
| +--rw member-ip* ietf-inet-types:ip-address
| +--rw source-ip? ietf-inet-types:ip-address
+--rw msdp-peer* [peer-ip]
| +--rw peer-ip ietf-inet-types:ip-address
| +--rw source-ip? ietf-inet-types:ip-address
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'lib/yang.c')
-rw-r--r-- | lib/yang.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/yang.c b/lib/yang.c index 5bf7758e1..b4902aef2 100644 --- a/lib/yang.c +++ b/lib/yang.c @@ -790,8 +790,7 @@ const struct lyd_node *yang_dnode_get_parent(const struct lyd_node *dnode, return NULL; } -/* API to check if the given node is last node in the list */ -static bool yang_is_last_list_dnode(const struct lyd_node *dnode) +bool yang_is_last_list_dnode(const struct lyd_node *dnode) { return (((dnode->next == NULL) || (dnode->next @@ -803,8 +802,7 @@ static bool yang_is_last_list_dnode(const struct lyd_node *dnode) != 0))); } -/* API to check if the given node is last node in the data tree level */ -static bool yang_is_last_level_dnode(const struct lyd_node *dnode) +bool yang_is_last_level_dnode(const struct lyd_node *dnode) { const struct lyd_node *parent; const struct lys_node_list *snode; |