ConfD User Community

Operational data - list entry does not exists

Hi ,

Need inputs on the below operational data display.

I have list for which entries are not present ,but when i trigger show command ,confd expects the element type to be passed with the value.

Is there any way to avoid setting the value for the list/container variables for which values are not exists(as of now to avoid the confd error , i am setting dummy value for the attributes, which is not correct way)

CLI should not display those values also .

Regards,
Raja

… ,confd expects the element type to be passed with the value.

It is a bit unclear what do you mean - I am guessing implementation of data provider callbacks?

If yes, then:

  • get_elem() implementation you can use confd_data_reply_not_found() as a response - if leaf has no value/is not set…
    (instead of confd_data_reply_value())

  • for list-entries that are usually queried via get_next() - you can set NULL for *v inside confd_data_reply_next_key()