CESNET / libnetconf2

C NETCONF library
BSD 3-Clause "New" or "Revised" License
203 stars 147 forks source link

Using local notifications and nc-notifications if not found on NETCONF Server #497

Closed esmasth closed 4 months ago

esmasth commented 4 months ago

If NETCONF server supports RFC5277 notification capability and libnetconf2 required notifications and nc-notifications are not present on the NETCONF server (which it is not obligated to support), then the libyang context needs to be initialized using client side local YANG schema files.

This change assumes that notifications and nc-notifications models are present in searchpath directory set via nc_client_set_schema_searchpath or in the default YANG_MODULE_DIR set via build time configuration.

This addresses #492

esmasth commented 4 months ago

Thanks @michalvasko!