ConfD User Community

Why get_elem calls invoked for operation "Create/Delete" even after get_object & get_next_objects callbacks are registered

get_object/get_next_object callbacks are registered & it works as expected on NetConf GET operation. But in case of edit-config with operation “delete/create”, still see get_elem callbacks. Surprise! why get_object/get_next_object is not being invoked.

I believe ConfD invokes it as an existence check before actual create/delete operation. Or to prepare rollback file if rollbacks are enabled, etc.

get_elem() / get_object() tends to be more “expensive” compared to get_elem(), thus call to get_elem() to “quickly” verify existence before the operation…

For the read part of the Data Provider (DP) API, please have a look at the reference demo we created here: