Output result for RPC Download in bbf-software-management.yang #2145
-
I am has problem with find output for RPC Download via function libyang::lys_find_xpath() ...
lys_find_xpath(ctx, NULL, "/ietf-hardware:hardware/component[name='switch']/bbf-software-management:software/software[name='cpu_sw']/revisions/download/download/*", LYS_FIND_XP_OUTPUT, &items) [T 63] lys_find_xpath(545)Begin: ctx=0x55fabfb0, ctx_node=0, xpath='/ietf-hardware:hardware/component[name='dpu_switch']/bbf-software-management:software/software[name='banner']/revisions/download/download/*', options=16 [T 63] lys_find_xpath(561)Allocate return set ... [T 63] lys_find_xpath(566)Compile expression ... [T 63] lys_find_xpath(569)Exp parsed: used=26, size=30 [T 63] lys_find_xpath(572)Atomize expression ... [T 63] lys_find_xpath(577)Transform into ly_set ... [T 63] lys_find_xpath(582)Iterations up to 4 ... [T 63] lys_find_xpath(584).. [0] type=2, in_ctx=0 [T 63] lys_find_xpath(584).. [1] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [1] name='hardware' [T 63] lys_find_xpath(584).. [2] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [2] name='component' [T 63] lys_find_xpath(587).. [2] ref='RFC 6933: Entity MIB (Version 4) - entPhysicalEntry' [T 63] lys_find_xpath(584).. [3] type=3, in_ctx=1 [T 63] lys_find_xpath(586).. [3] name='name' [T 63] lys_find_xpath(597)Cleanup ... [T 63] lys_find_xpath(604)Return: 0
lys_find_xpath(ctx, NULL, "/ietf-hardware:hardware/component[name='switch']/bbf-software-management:software/software[name='cpu_sw']/revisions/download/download/*", 0, &items) [T 63] lys_find_xpath(545)Begin: ctx=0x55ff6fb0, ctx_node=0, xpath='/ietf-hardware:hardware/component[name='switch']/bbf-software-management:software/software[name='cpu_sw']/revisions/download/download/*', options=0 [T 63] lys_find_xpath(561)Allocate return set ... [T 63] lys_find_xpath(566)Compile expression ... [T 63] lys_find_xpath(569)Exp parsed: used=26, size=30 [T 63] lys_find_xpath(572)Atomize expression ... [T 63] lyxp_atomize(9912)Begin [T 63] lyxp_atomize(9944)Return: 0 [T 63] lys_find_xpath(577)Transform into ly_set ... [T 63] lys_find_xpath(582)Iterations up to 12 ... [T 63] lys_find_xpath(584).. [0] type=1, in_ctx=0 [T 63] lys_find_xpath(584).. [1] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [1] name='hardware' [T 63] lys_find_xpath(584).. [2] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [2] name='component' [T 63] lys_find_xpath(587).. [2] ref='RFC 6933: Entity MIB (Version 4) - entPhysicalEntry' [T 63] lys_find_xpath(584).. [3] type=3, in_ctx=1 [T 63] lys_find_xpath(586).. [3] name='name' [T 63] lys_find_xpath(584).. [4] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [4] name='software' [T 63] lys_find_xpath(584).. [5] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [5] name='software' [T 63] lys_find_xpath(584).. [6] type=3, in_ctx=1 [T 63] lys_find_xpath(586).. [6] name='name' [T 63] lys_find_xpath(584).. [7] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [7] name='revisions' [T 63] lys_find_xpath(584).. [8] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [8] name='download' [T 63] lys_find_xpath(584).. [9] type=3, in_ctx=0 [T 63] lys_find_xpath(586).. [9] name='download' [T 63] lys_find_xpath(584).. [10] type=3, in_ctx=2 [T 63] lys_find_xpath(586).. [10] name='source' [T 63] lys_find_xpath(591).. [10] Was added [T 63] lys_find_xpath(584).. [11] type=3, in_ctx=2 [T 63] lys_find_xpath(586).. [11] name='target' [T 63] lys_find_xpath(591).. [11] Was added [T 63] lys_find_xpath(597)Cleanup ... [T 63] lys_find_xpath(604)Return: 0 What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Please try the latest libyang in |
Beta Was this translation helpful? Give feedback.
-
Thank you for answer! Will check fix from devel |
Beta Was this translation helpful? Give feedback.
-
I'm was ckeck with commit 5357561 from devel |
Beta Was this translation helpful? Give feedback.
-
$ ./test Found with output: Found w/o output: source target libyang build from last devel $ git log commit eecad552fe58326a646df9cc9d7fea145ed64e3b (HEAD -> devel, origin/devel) Author: Michal Vasko Date: Fri Dec 15 16:09:57 2023 +0100 VERSION bump to version 2.1.144 |
Beta Was this translation helpful? Give feedback.
-
Please provide similar output.
|
Beta Was this translation helpful? Give feedback.
Please try the latest libyang in
devel
, there was a bug that should be fixed.