Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem removing database/model #277

Open
ntadas opened this issue May 14, 2019 · 1 comment
Open

problem removing database/model #277

ntadas opened this issue May 14, 2019 · 1 comment

Comments

@ntadas
Copy link
Contributor

ntadas commented May 14, 2019

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants