Hi
I am new to confd.
I have a basic doubt. I have created a list with a single leaf as follows
list abc {
tailf:info “abc”;
tailf:callpoint abcView {
tailf:transform true;
view:enable;
}
key xyz;
leaf xyz {
type uint32 {
range “1…4294967295”;
}
mandatory true;
}
view:register-hook “abc”;
}
The register-hook attaches the createdb, get_elem, set_elem, removedb as callback functions
Now when i run the command as follows;
abc xyz 1
commit
no abc xyz 1
abc xyz 2
commit
In the last commit; first removedb for 1 gets called and then createdb for 2 gets called. Which is fine.
But if i do the following seq
abc xyz 2
commit
no abc xyz 2
abc xyz 1
commit
In the last commit, first createdb for 1 gets called and then removedb for 2 gets called.
I did not understand why value of xyz (1 or 2) is deciding the sequence of hook functions.
Can i control the sequence in this?
Thanks.