how to get the rest of the content from its tree
member.
#2237
Labels
is:question
Issue is actually a question.
tree
member.
#2237
Hello, I'm a student who is studying yang & neconf.
I'm trying to extract my list data from the data node with the command,
I'm trying to get rid of node for for loop and get list data.
but continuously failed.
I'm trying to get data with lyd_node_any and using raw op variable both.
but both failed. there is no child after node.
`void fillSwitchInfo(struct lyd_node *node, SwitchInfo *switchInfo) {
LY_ERR err;
struct lyd_node *next;
struct lyd_node_inner *inner;
printf("fillSwitchInfo\n");
}
`
this is my fillswitchinfo function, but not working.
the data from command looks like this one. but there is no child after node.
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><switch_info xmlns="urn:lgessu:params:xml:ns:yang:SmStubStd"><dpid>00:1d:7e:8a:74:d7</dpid><port_status><port><port_number>1</port_number><status>ALIVE</status></port><port><port_number>2</port_number><status>SLEEP</status></port></port_status><l2_table><table_entry><key>101</key><MAC_address>00:1d:7e:8a:74:d8</MAC_address><output_port>2</output_port></table_entry><table_entry><key>102</key><MAC_address>00:1d:7e:8a:74:d9</MAC_address><output_port>3</output_port></table_entry></l2_table><cbs_table><table_entry><key>201</key><bandwidth>100</bandwidth></table_entry><table_entry><key>202</key><bandwidth>150</bandwidth></table_entry></cbs_table></switch_info></data>
what should I do for extract data from get-config raw data.
Originally posted by @ipseokri in #1890 (comment)
The text was updated successfully, but these errors were encountered: