Merge pull request #1221 from kernelkit/silence-confd

This commit is contained in:
Mattias Walström
2025-11-01 17:59:25 +01:00
committed by GitHub
+1 -5
View File
@@ -406,14 +406,10 @@ static int restconf_change(sr_session_ctx_t *session, struct lyd_node *config, s
{
struct lyd_node *srv = NULL;
sr_data_t *cfg;
char *out;
if (event != SR_EV_DONE || !lydx_get_xpathf(diff, WEB_RESTCONF_XPATH))
return SR_ERR_OK;
ERROR("RESTCONF CHANGES DETECTED");
lyd_print_mem(&out, diff, LYD_JSON,
LYD_PRINT_WITHSIBLINGS | LYD_PRINT_WD_ALL);
ERROR("%s", out);
cfg = get(session, event, WEB_XPATH, &srv, "web", "restconf", NULL);
if (!cfg)
return SR_ERR_OK;