Skip to content

Commit

Permalink
Allow disabling of netconf notification
Browse files Browse the repository at this point in the history
  • Loading branch information
mpereh authored and dima1308 committed Dec 19, 2024
1 parent 227e06d commit 64f5b90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/clixon_netconf_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,10 @@ netconf_capabilites(clicon_handle h,
xml_chardata_cbuf_append(cb, "urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=explicit&also-supported=report-all,trim,report-all-tagged");
cprintf(cb, "</capability>");
/* RFC5277 Notification Capability */
cprintf(cb, "<capability>%s</capability>", NETCONF_NOTIFICATION_CAPABILITY);
if (clicon_option_bool(h, "CLICON_NETCONF_NOTIFICATION_CAP"))
{
cprintf(cb, "<capability>%s</capability>", NETCONF_NOTIFICATION_CAPABILITY);
}
/* RFC6022 YANG Module for NETCONF Monitoring
* This seems non-standard but necessary for most existing boxes and software
*/
Expand Down

0 comments on commit 64f5b90

Please sign in to comment.