Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

problem removing database/model #277

@ntadas

Description

@ntadas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions