get_object for containers within a list

Hello,

Can I use get_object to retrieve operational_data of containers within lisT?

Best regards,
Poornima.M

Yes you can, you will get a value array with the list(s) / container(s). See the confd_cmd tool source for an example.

I.e. the do_cdb_get_object() and do_cdb_get_object_tags() functions in the $CONFD_DIR/src/confd/tools/confd_cmd.c file.

Quick demo using the examples.confd/cdb_oper/ifstatus example:

Terminal window 1:

$ make clean all start
...

Terminal window 2:

$ confd_cmd -o -c "get_object_tag /interfaces/interface{\"lo\"}"
name = lo

status
receive
bytes = 713231703
packets = 5578606
errors = 0
dropped = 0
transmit
bytes = 713231703
packets = 5578606
errors = 0
dropped = 0
collisions = 0