I am trying to use two of the examples found in RFC 9195 https://www.rfc-editor.org/rfc/rfc9195.html#name-preloading-default-configur and https://www.rfc-editor.org/rfc/rfc9195.html#name-storing-diagnostics-data to test out how to validate that instance data is formatted correctly.
Using yanglint, I load all the yang necessary and then load the data from either the xml file (read-only-acm-rules) or the json file (acme-router-netconf-diagnostics). I get a similar error for both... data -t data -f xml acme-router-netconf-diagnostics.json libyang[0]: Node "instance-data-set" not found in the "ietf-yang-instance-data" module. (path: Line number 2.) YANGLINT[E]: Failed to parse input data file "acme-router-netconf-diagnostics.json". What is the best tooling to use to validate the instance data? What tooling was used to validate the contents used in the examples? I'm trying to determine if this a yanglint issue, user error, or I'm just using the wrong tool. Here is a link to a github with my testing: https://github.com/samans/testing-yang/tree/main/ieee-60802/60802 If interested t.in in the expect script for the acme-router-netconf-diagnostics.json example and x.in is the expect script for the read-only-acm-rules.xml example. regards, -scott.
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
