Closed pfeige closed 2 years ago
Top-level data are required because of some weird undefined behavior if it is only subtree. sr_get_subtree()
should return the subtree with all the parents and it does but only in the devel
branch for now.
Can you give me a link to the changes?
Well, it's commit https://github.com/sysrepo/sysrepo/commit/426dc3c92e0a7be893b30d8080b70d9821e357b7 if that is what you meant but I was too lazy to put it separately so it is part of the whole NACM implementation.
Test is passed. Thanks!
Hi,
when trying to connect via tls with the netopeer server the connection is reset by the server. So, I tried to find out what is going on there. On connection establishment via tls the callback np2srv_cert_list_cb() is called: https://github.com/CESNET/netopeer2/blob/05d9ac47195345dcef35443980aa2a4390257f19/src/netconf_server_tls.c#L101-L135 Within this callback the xpath "certificate/cert" shall be found via lyd_find_xpath() on line 132. But this is rejected by libyang in lyxp_eval() with the error 'Data node "certificates" has no parent but it is not instance of a top-lelvel schema node.': https://github.com/CESNET/libyang/blob/484bda41b1cf10d3fb788ab88fd2ca18093c2f38/src/xpath.c#L8698-L8727 The if-statement on line 8721 rejects all data trees which are not top level. I have no idea why this should be an error. Furthermore, when I remove the for-loop and the if-statement then the given xpath can be found and the tls conection can be established. Can you have a look on this?
The installed modules and features:
The database: