-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Labels
is:bugBug description.Bug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)From the developer perspective, the issue was solved (bug fixed, question answered,...)
Description
Line 695 in 7e2a3b1
| return; |
If return too early like this, it may has problem in some situations. For example :
I have a rpc defined like this:
module: xxxx-snmp
rpcs:
+---x activate-users
+---- input
+---w activate-users
+---w activate-user* [name]
+---w name string
+---w engine-id? string
. Then when I use the lys_print_mem API
lys_print_mem(&out, module, LYS_OUT_TREE, "/xxxx-snmp:activate-users/input/activate-users", 0, 0);
the result is
module: xxxx-snmp
rpcs:
+---x activate-users
+---- input
+---- activate-users
+---- activate-user* [name]
+---- name string
+---- engine-id? string
It missing the "w" flag.
I am using libyang1.0.130.
Thanks
Metadata
Metadata
Assignees
Labels
is:bugBug description.Bug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)From the developer perspective, the issue was solved (bug fixed, question answered,...)