Rogerio Guerreiro <
rogerio.g...@gmail.com> wrote:
>
>Is there a way yo get a keypath from a arbitrary confd_cs_node? I'm trying
>something like this:
No - by definition. The confd_cs_node tree is a representation of the
schema, i.e. it is static for a given YANG model. It doesn't have any
instance data, and in particular, no keys for list entries. You *could*
do some combination of traversing the schema and using the info to
retrieve instance data such as keys from MAAPI or CDB, but not knowing
your use case, it is difficult to give any specific advice. Most lists
have more than one entry...
--Per Hedeland