diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-03-11 15:47:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-11 15:47:17 -0400 |
| commit | c5ecee63acd7f8c9d6fd3338d2c6ee7939872d6c (patch) | |
| tree | c7eb4cfd64513e21ab63bf1cac31b8d64aa0e3e8 | |
| parent | c514e84979db731c5ca4d14797843cd330519402 (diff) | |
| parent | fb912e09004fde46ad4447c6d563b195ee159088 (diff) | |
Merge pull request #15517 from idryzhov/fix-yang-notif-actions
lib: fix initialization of northbound nodes
| -rw-r--r-- | lib/yang.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/yang.c b/lib/yang.c index 03044fc29e..d71cb2f498 100644 --- a/lib/yang.c +++ b/lib/yang.c @@ -199,6 +199,16 @@ next: 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; } |
