04-23-2020 01:04 AM
Hi,
Is there any way we can change the order of traversal for leafs for get_elem function?
For e.g. We have transform callpoint for "test_entry".
If we call "get" on "test_entry", it fetches val1 and val2 before valuelist,
Is there any way I can fetch valuelist before val1/val2?
module: sample-module +--ro sample_container +--ro test_entry* [instanceKey] +--ro instanceKey instance-identifier +--ro val1 string +--ro val2 string +--ro valuelist* [type] +--ro type string +--ro message string
Thanks,
Aman
04-27-2020 03:03 AM
The only way to change the order of callback invocations is to change the data model. But if you cannot do that and you need to deal with valuelist no later than with other nodes, there are options like delayed response, bulk methods or stateful data providers; I can imagine that some combination of these can help with that.
04-30-2020 07:21 AM - edited 04-30-2020 07:22 AM
Thanks a lot for the reply.
From which portion on development guide (OR other doc) can I get more info on delayed response and bulk methods ?
05-01-2020 05:42 AM
Most of the relevant info is in manual pages, in particular confd_lib_dp. You should be able to get hold of a ConfD distribution (a product in many aspects very similar or identical to NSO; a restricted version "ConfD Basic" can be obtained from Tail-f pages), it contains examples of how this API is supposed to be used.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide