cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
306
Views
0
Helpful
3
Replies
Highlighted
Cisco Employee

Is there any way we can change the order of traversal for leafs for get_elem function?

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

3 REPLIES 3
Highlighted
Cisco Employee

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.

Highlighted

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 ?

Highlighted

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.