I am Developing operational data cli for our product. I facing issue with data set and reply using confd_data_reply_tag_value_array(). In my yang there have a list, and inside that there have one more list. I put callpoint for outer list . Now when callpoint get trigger how to set data for both and reply back to confd. Can anybody help me to resolve the issue.
You can add a callpoint to each of your two lists. You can use the same callpoint id for the tailf:callpoint if you wish. ConfD will call the correct data provider registered for the two lists, i.e. list1 and list2 inside list1 with the corresponding keypath.
You probably saw this one already can se a hint of how to create a tag_value_array here:
Then use the same callpoint for both lists in two tailf:callpoint:s?
list one {
config false;
key "name1";
tailf:callpoint callpoint;
leaf name1 {
type string;
}
list two {
key "name2";
tailf:callpoint callpoint;
leaf name2 {
type string;
}
}
}