I think there are few misconceptions here. The macros CONFD_SET_TAG_XXX
are used typically when you are writing a data provider that implements bulk methods and you want to response with s.c. tagged value array. The macros don’t do any magic, they just help you with filling the response array; in particular they do not touch CDB at all.
The point of using tagged value arrays is that you do not have to follow the schema order - you fill only those leaves that should be reported as present and ignore the rest; since the values filled in are accompanied by tags (in effect by leaf/node names), ConfD is then able to map values to YANG leaves.
Again: the macro is of any use only if you want/need to use the type confd_tag_value_t
, which you need only if you are implementing data provider bulk methods or dealing with RPCs/actions.