summaryrefslogtreecommitdiff
path: root/lib/northbound.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/northbound.c')
-rw-r--r--lib/northbound.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/northbound.c b/lib/northbound.c
index 3634fed04f..1ce815ea1e 100644
--- a/lib/northbound.c
+++ b/lib/northbound.c
@@ -336,7 +336,7 @@ int nb_config_merge(struct nb_config *config_dst, struct nb_config *config_src,
{
int ret;
- ret = lyd_merge_tree(&config_dst->dnode, config_src->dnode, 0);
+ ret = lyd_merge_siblings(&config_dst->dnode, config_src->dnode, 0);
if (ret != 0)
flog_warn(EC_LIB_LIBYANG, "%s: lyd_merge() failed", __func__);
@@ -599,6 +599,7 @@ static void nb_config_diff(const struct nb_config *config1,
* the diff tree.
*/
target = yang_dnode_get(config2->dnode, path);
+ assert(target);
nb_config_diff_created(target, &seq, changes);
/* Skip rest of sub-tree, move to next sibling
@@ -607,6 +608,7 @@ static void nb_config_diff(const struct nb_config *config1,
break;
case 'd': /* delete */
target = yang_dnode_get(config1->dnode, path);
+ assert(target);
nb_config_diff_deleted(target, &seq, changes);
/* Skip rest of sub-tree, move to next sibling