diff --git a/lib/src/clixon_netconf_lib.c b/lib/src/clixon_netconf_lib.c index 8a426f8f..11b9587a 100644 --- a/lib/src/clixon_netconf_lib.c +++ b/lib/src/clixon_netconf_lib.c @@ -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, ""); /* RFC5277 Notification Capability */ - cprintf(cb, "%s", NETCONF_NOTIFICATION_CAPABILITY); + if (clicon_option_bool(h, "CLICON_NETCONF_NOTIFICATION_CAP")) + { + cprintf(cb, "%s", NETCONF_NOTIFICATION_CAPABILITY); + } /* RFC6022 YANG Module for NETCONF Monitoring * This seems non-standard but necessary for most existing boxes and software */