Netconf monitoring:

- Announce module capability
- Return origin Yang file in get-schema
This commit is contained in:
Olof hagsand 2022-12-03 18:49:39 +01:00
parent 981d6f3797
commit a38c54e4cc
8 changed files with 108 additions and 32 deletions

View file

@ -1815,6 +1815,11 @@ netconf_capabilites(clicon_handle h,
cprintf(cb, "</capability>");
/* RFC5277 Notification Capability */
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
*/
if (clicon_option_bool(h, "CLICON_NETCONF_MONITORING"))
cprintf(cb, "<capability>%s</capability>", NETCONF_MONITORING_NAMESPACE);
/* It is somewhat arbitrary why some features/capabilities are hardocded and why some are not
* rfc 6241 Sec 8.4 confirmed-commit capabilities */