I'm creating several datastore using ncds_new (both NCDS_TYPE_CUSTOM and NCDS_TYPE_EMPTY)
In order for libnetconf to resolve the imports, grouping and augments I'm using both
ncds_add_models_path
and
ncds_add_model (for each yin file)
everything works smoothly and I'm able to send the ncntf_event_new(-1, NCNTF_BASE_CPBLT_CHANGE, old_cpblts, new_cpblts, NCNTF_EVENT_BY_SERVER);
without any problem.
the problems start if I try to unload the models.
The only way I have to unload them is to use the
ncds_free
and
ncds_free2
but apparently this only remove the datastores but keeps the info added by the ncds_add_model and ncds_add_model_path.
How can I completely clean a model from libnetconf?
Hi,
it seems it is not possible for some reason. We have not worked with this library for years so I do not know the reason nor will I try to find out. You should have been using libnetconf2 by now.
I'm creating several datastore using
ncds_new
(bothNCDS_TYPE_CUSTOM
andNCDS_TYPE_EMPTY
) In order for libnetconf to resolve the imports, grouping and augments I'm using bothncds_add_models_path
andncds_add_model
(for each yin file)everything works smoothly and I'm able to send the
ncntf_event_new(-1, NCNTF_BASE_CPBLT_CHANGE, old_cpblts, new_cpblts, NCNTF_EVENT_BY_SERVER);
without any problem.the problems start if I try to unload the models. The only way I have to unload them is to use the
ncds_free
andncds_free2
but apparently this only remove the datastores but keeps the info added by the
ncds_add_model
andncds_add_model_path
. How can I completely clean a model from libnetconf?thanks