Skip to content

Commit 024ecc5

Browse files
committed
cmake UPDATE libyang updates
1 parent 57b14c6 commit 024ecc5

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ endif()
4444
set(NP2SRV_VERSION 2.6.2)
4545

4646
# libyang required version
47-
set(LIBYANG_DEP_VERSION 4.0.0)
48-
set(LIBYANG_DEP_SOVERSION 4.0.0)
47+
set(LIBYANG_DEP_VERSION 4.2.0)
48+
set(LIBYANG_DEP_SOVERSION 4.2.0)
4949
set(LIBYANG_DEP_SOVERSION_MAJOR 4)
5050

5151
# libnetconf2 required version

cli/commands.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ cli_ntf_clb(struct nc_session *UNUSED(session), const struct lyd_node *envp, con
227227
for (top = op; top->parent; top = lyd_parent(top)) {}
228228

229229
fprintf(output, "notification (%s)\n", ((struct lyd_node_opaq *)lyd_child(envp))->value);
230-
lyd_print_file(output, top, opts.output_format, LYD_PRINT_WITHSIBLINGS | opts.output_flag);
230+
lyd_print_file(output, top, opts.output_format, LYD_PRINT_SIBLINGS | opts.output_flag);
231231
fprintf(output, "\n");
232232
fflush(output);
233233

@@ -364,7 +364,7 @@ cli_send_recv(struct nc_rpc *rpc, FILE *output, NC_WD_MODE wd_mode, int timeout_
364364
fputs(any->value.str, output);
365365
break;
366366
case LYD_ANYDATA_DATATREE:
367-
lyd_print_mem(&model_data, any->value.tree, LYD_XML, LYD_PRINT_WITHSIBLINGS);
367+
lyd_print_mem(&model_data, any->value.tree, LYD_XML, LYD_PRINT_SIBLINGS);
368368
fputs(model_data, output);
369369
free(model_data);
370370
break;
@@ -402,7 +402,7 @@ cli_send_recv(struct nc_rpc *rpc, FILE *output, NC_WD_MODE wd_mode, int timeout_
402402
break;
403403
}
404404

405-
lyd_print_file(output, lyd_child(op), opts.output_format, LYD_PRINT_WITHSIBLINGS | ly_wd | opts.output_flag);
405+
lyd_print_file(output, lyd_child(op), opts.output_format, LYD_PRINT_SIBLINGS | ly_wd | opts.output_flag);
406406
if (output == stdout) {
407407
fprintf(output, "\n");
408408
}
@@ -443,7 +443,7 @@ cli_send_recv(struct nc_rpc *rpc, FILE *output, NC_WD_MODE wd_mode, int timeout_
443443
info = lyd_child(err);
444444
while (!lyd_find_sibling_opaq_next(info, "error-info", &info)) {
445445
fprintf(output, "\tinfo:\n");
446-
lyd_print_file(stdout, lyd_child(info), LYD_XML, LYD_PRINT_WITHSIBLINGS);
446+
lyd_print_file(stdout, lyd_child(info), LYD_XML, LYD_PRINT_SIBLINGS);
447447

448448
info = info->next;
449449
}

src/netconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ np2srv_rpc_copyconfig_cb(const struct lyd_node *rpc, struct np_user_sess *user_s
435435
}
436436
}
437437

438-
if ((reply = np_op_export_url(LYD_CTX(rpc), trg_url, config, LYD_PRINT_WITHSIBLINGS | lyp_wd_flag))) {
438+
if ((reply = np_op_export_url(LYD_CTX(rpc), trg_url, config, LYD_PRINT_SIBLINGS | lyp_wd_flag))) {
439439
goto cleanup;
440440
}
441441
} else

src/netconf_confirmed_commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ ncc_backup_module(sr_session_ctx_t *session, const struct lys_module *module)
591591
reply = np_reply_err_op_failed(session, NULL, "Memory allocation failed.");
592592
goto cleanup;
593593
}
594-
if (lyd_print_path(path, data ? data->tree : NULL, LYD_JSON, LYD_PRINT_WITHSIBLINGS | LYD_PRINT_SHRINK)) {
594+
if (lyd_print_path(path, data ? data->tree : NULL, LYD_JSON, LYD_PRINT_SIBLINGS | LYD_PRINT_SHRINK)) {
595595
ERR("Failed backing up node of module \"%s\" into file \"%s\".", module->name, path);
596596
reply = np_reply_err_op_failed(session, NULL, ly_last_logmsg());
597597
goto cleanup;

tests/np2_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct np2_test {
141141
if (err_tag) { \
142142
assert_string_equal(lyd_get_value(lyd_child(lyd_child(st->envp))->next), err_tag); \
143143
} else { \
144-
assert_int_equal(LY_SUCCESS, lyd_print_mem(&state->str, lyd_child(state->envp), LYD_XML, LYD_PRINT_WITHSIBLINGS)); \
144+
assert_int_equal(LY_SUCCESS, lyd_print_mem(&state->str, lyd_child(state->envp), LYD_XML, LYD_PRINT_SIBLINGS)); \
145145
}
146146

147147
#define ASSERT_ERROR_REPLY(state) \

0 commit comments

Comments
 (0)