Closed robbynet closed 1 year ago
So I wanted to improve this but it turns out it is really challenging if not impossible. Based on the nature of operational
datastore (in sysrepo) the datastore is changing very often and (when using oper get subscriptions) even without sysrepo knowledge. Meaning it is possible to determine whether the operational
datastore is valid at a given moment but not in general.
You can use the validate
RPC to check the immediate validity of it and there is nothing else we can really do. But update sysrepo first, proper operational
datastore validation has been added (it allows for broken YANG semantic constraints when libyang generates only warnings).
Thanks for the sharing
With v2.1.42, improvements regarding leafref validity has been observed. Now with v2.1.49, it appears that leafref in Yang below does not lead to any error into NC Server while the path of the leafref is not set in the Datastore. Yang extract is the following :
And result is correct into the CLI while path /performance-measurement-objects/transceiver-measurement-objects/measurement-object does not exist in the datastore ! Wonder if NC Server should not prevent/refuse to share list transceiver-objects when corresponding path is not set in Datastore ?