From 5a553018c8ba7e166aedc0b6e1afca9c5e1c7b72 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Sat, 8 Feb 2025 14:56:27 +0100 Subject: [PATCH] Restconf stream: add username, increment message-id to create-subscription --- apps/restconf/restconf_stream.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/restconf/restconf_stream.c b/apps/restconf/restconf_stream.c index e906011d..c5d3c77c 100644 --- a/apps/restconf/restconf_stream.c +++ b/apps/restconf/restconf_stream.c @@ -146,6 +146,7 @@ restconf_subscription(clixon_handle h, int i; cg_var *cv; char *vname; + char *username; clixon_debug(CLIXON_DBG_STREAM, ""); *sp = -1; @@ -153,8 +154,15 @@ restconf_subscription(clixon_handle h, clixon_err(OE_XML, errno, "cbuf_new"); goto done; } - cprintf(cb, "%s", - NETCONF_BASE_NAMESPACE, NETCONF_MESSAGE_ID_ATTR, EVENT_RFC5277_NAMESPACE, name); + cprintf(cb, ""); + cprintf(cb, "%s", + EVENT_RFC5277_NAMESPACE, name); /* Print all fields */ for (i=0; i