Replies: 1 comment 17 replies
-
Okay, so you get an |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to parse a response I get using libnetconf2 and libyang. I could not find any simple example that's doing so.
I'm using
nc_rpc_get()
. Then I get anrpc
and usenc_send_rpc()
. Then I fetch the data usingnc_recv_reply()
.nc_recv_reply()
gives me alibyang
object which is calledstruct lyd_node*
which should reflect (AFAIU) the data in yang.The problem is that it just doesn't bring the data in data structures. I can only print it with
lyd_any_value_str()
and I get anxml
. I can't really go over the nodes and see what is acontainer
, what is aleaf
and get that value.What I'm asking is for a simple example of querying a server and then iterating over the results as if one node was
list
, then another was aleaf
etc...Thanks anyway!
Beta Was this translation helpful? Give feedback.
All reactions