libyang
libyang copied to clipboard
YANG data modeling language library
#1485 unified formatting of lists and leaf-list printed in JSON format. In case we would see reasonable interest, additional printer option(s) could be added to configure the output formatting. Just...
I'm interested in validating YANG package instances, starting with the examples in [draft-rwilton-netmod-yang-packages Appendix A](https://tools.ietf.org/html/draft-rwilton-netmod-yang-packages#appendix-A). But I don't even know whether I should expect `yanglint` to be able to do...
Looking into Sysrepo’s support for database backends, one can find [Sysrepo#774](https://github.com/sysrepo/sysrepo/issues/774), in which Radek makes [this comment](https://github.com/sysrepo/sysrepo/issues/774#issuecomment-300141267): > This will need support in libyang, which expect this way of enahncement,...
**Precondition**: - a YANG module (example.yang) - a bunch of instance example documents (a.xml, b.json, etc.) - a script that validates each instance example document against the YANG module -...
A TL;DR version: can you please report all ``must`` failures when validating data? It seems that only the first one of them is reported by ``yanglint`` and I presume also...
Hi, As described in [https://tools.ietf.org/html/rfc7950#section-11](https://tools.ietf.org/html/rfc7950#section-11), sometimes, we need update a module to a new revision, however, libyang does not allow loading a new module which has been loaded with an...
Hello, I encountered an issue when defining a leaf whose type is a union that contains only leafref types, then I only added a value for this leaf, the lyd_parse_mem...
Building C object tests/utests/CMakeFiles/utest_uint8.dir/types/uint8.c.o In file included from /home/ira/libyang/tests/utests/types/../utests.h:26, from /home/ira/libyang/tests/utests/types/uint8.c:17: /usr/include/cmocka.h:2209:42: error: unknown type name ‘uintmax_t’ 2209 | typedef int (*CheckParameterValue)(const uintmax_t value, ... /usr/include/cmocka.h:2486:32: error: unknown type name...
If the "ietf-datastores" module version loaded at the client doesn't match with the server version, then the "notifications" schema is getting lost from the context. I have tried with libyang...