CESNET / libnetconf

C NETCONF library
Other
113 stars 84 forks source link

problem removing database/model #277

Open ntadas opened 5 years ago

ntadas commented 5 years ago

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?

thanks

michalvasko commented 5 years ago

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.

Regards, Michal