Replies: 2 comments 3 replies
-
You are right, I could not find tests for this, which seems weird. In any case, it should work normally but you will have to use |
Beta Was this translation helpful? Give feedback.
-
Just in case you didn't know, we have a pretty usable RESTCONF implementation on top of sysrepo. What you see in the Now, I understand you don't use sysrepo, but maybe some of the trickier libyang bits that we do might still help you. I remember we ended up reporting and fixing some libyang bugs over the past few months. We do not currently implement the "API resource", so there's no RPC listing (and BTW, that only does RPCs, not actions, right?). However, from YANG perspective it seems similar to how errors are treated, and that was very easy to code. For a few more examples on RESTCONF-specific parsing, you might also see the unit tests in |
Beta Was this translation helpful? Give feedback.
-
I'm working on a RESTCONF server. One of the things to implement is returning the operations (RPCs) supported on the server. The operations supported are obtained by a RESTCONF client by doing a GET on
/restconf/operations
; however, the return value is modeled using theyang-data
extension defined in theietf-restconf
module. I see there is a plugin in libyang for yang-data, but if I understand the tests that are testing this plugin, the only thing being tested is that libyang can parse YANG modules that include the use of this extension. I don't see any creation of data nodes corresponding toyang-data
modeled data.Is it possible to use libyang to create an actual tree of data nodes corresponding to the
yang-data
defined inietf-restconf
?Beta Was this translation helpful? Give feedback.
All reactions