Skip to content

Commit

Permalink
Merge pull request #15517 from idryzhov/fix-yang-notif-actions
Browse files Browse the repository at this point in the history
lib: fix initialization of northbound nodes
  • Loading branch information
donaldsharp authored Mar 11, 2024
2 parents c514e84 + fb912e0 commit c5ecee6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/yang.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ int yang_snodes_iterate_subtree(const struct lysc_node *snode,
if (ret == YANG_ITER_STOP)
return ret;
}
LY_LIST_FOR ((const struct lysc_node *)lysc_node_notifs(snode), child) {
ret = yang_snodes_iterate_subtree(child, module, cb, flags, arg);
if (ret == YANG_ITER_STOP)
return ret;
}
LY_LIST_FOR ((const struct lysc_node *)lysc_node_actions(snode), child) {
ret = yang_snodes_iterate_subtree(child, module, cb, flags, arg);
if (ret == YANG_ITER_STOP)
return ret;
}
return ret;
}

Expand Down

0 comments on commit c5ecee6

Please sign in to comment.