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

Does libyang have any plan to support updating a module #231

Open
fanchanghu opened this issue Dec 22, 2016 · 4 comments
Open

Does libyang have any plan to support updating a module #231

fanchanghu opened this issue Dec 22, 2016 · 4 comments
Labels
is:enhancement Request for adding new feature or enahncing functionality.

Comments

@fanchanghu
Copy link
Contributor

Hi,
As described in https://tools.ietf.org/html/rfc7950#section-11, sometimes, we need update a module to a new revision, however, libyang does not allow loading a new module which has been loaded with an old revison.

@rkrejci
Copy link
Collaborator

rkrejci commented Dec 22, 2016

But the context allows you to remove the specific module from it (see ly_ctx_remove_module()). Or what kind of support would you expect?

@rkrejci rkrejci closed this as completed Dec 22, 2016
@fanchanghu
Copy link
Contributor Author

Hi,
I means to add features like this:
1, check whether a module with new revision matchs the rule described in https://tools.ietf.org/html/rfc7950#section-11;
2, update a module to a new revision if it can be checked like above. ly_ctx_remove_module() is not very convenient when the module is depended by other modules.
This features will help users update their modules when needed.

@rkrejci
Copy link
Collaborator

rkrejci commented Dec 23, 2016

Hi, I like this idea, however it seems to me more as a "special" feature than a common feature. Therefore, with a limited resources we have, it probably won't be implemented in a short time. Anyway, I have added it into our internal TODO list. Thanks.

@rkrejci rkrejci reopened this Dec 23, 2016
@fanchanghu
Copy link
Contributor Author

OK, thanks.

@rkrejci rkrejci added the is:enhancement Request for adding new feature or enahncing functionality. label Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:enhancement Request for adding new feature or enahncing functionality.
Projects
None yet
Development

No branches or pull requests

2 participants