Thanks you @mvf . After using this function CONFD_SET_TAG_NS, the namespace can be returned correctly, Much appreciated.
But after the get-object callpoint function worked, I encounter another issue.
Firstly, I didn’t return nodes with default values, so the netconf requests’ elapsed time were improved about 40%. But some netconf requests have the option “with-defaults”, and the confd doesn’t fill out the default value of the nodes according to yang file, which were omitted by our data provider since their values are default values… @mvf, Is this confd expected behavior? So I had to change the code to return all the nodes with the non-default values or default values. After the code changed, there was no 40% improvement any more. Some cases, the elapsed time was even as long as what get-elem callpoint did… @mvf , can you give me some guidance? Thanks a lot.
A data provider should return a C_DEFAULT value (e.g. via the macro CONFD_SET_DEFAULT) for a leaf node with the default value - have a look at the confd_lib_dp manpage.
As for performance degradation - were you able to check which part performs worse, if it is the data provider or confd processing and rendering the NETCONF messages? If that’s the latter, there is some chance the performance improves again (at least in the with-defaults="trim" mode, if supported by your setting).
Thanks you @mvf. I’ll change my code with “C_DEFAULT” and update the performance result. And There is an issue to retrieve all schema file in external data provider, so with-defaults = “report-all-tagged” have to be used in the netconf request currently.