diff --git a/src/main.c b/src/main.c index 5c18e47b..d3b1ee6a 100644 --- a/src/main.c +++ b/src/main.c @@ -604,12 +604,19 @@ np2srv_capabilities_oper_cb(sr_session_ctx_t *session, uint32_t sub_id, } if (lyd_new_list(datastore_capas, NULL, "per-node-capabilities", - 0, &per_node_capas, '/')) { + 0, &per_node_capas, "")) { ERR("Failed to create per-node-capabilities."); rc = -1; goto cleanup; } + if (lyd_new_term(per_node_capas, NULL, "node-selector", "/", + 0, NULL)) { + ERR("Failed to create node-selector."); + rc = -1; + goto cleanup; + } + /* per datastore capabilities */ if (np2srv_add_subscription_capabilities(per_node_capas, ly_ctx)) { ERR("Failed to add per node subscription-capabilities."); diff --git a/tests/test_filter.c b/tests/test_filter.c index 016e6680..c313175d 100644 --- a/tests/test_filter.c +++ b/tests/test_filter.c @@ -1445,8 +1445,7 @@ test_depth(void **state) GET_DATA_FILTER(st, "ietf-datastores:running", filter, NULL, NULL, 0, 0, 1, 0, NC_WD_ALL); expected = "\n" - " \n" - " \n" + " \n" "\n"; assert_string_equal(st->str, expected); FREE_TEST_VARS(st);