libyang icon indicating copy to clipboard operation
libyang copied to clipboard

Does libyang have any plan to support updating a module

Open fanchanghu opened this issue 8 years ago • 4 comments

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.

fanchanghu avatar Dec 22 '16 07:12 fanchanghu

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 avatar Dec 22 '16 14:12 rkrejci

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.

fanchanghu avatar Dec 23 '16 01:12 fanchanghu

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 avatar Dec 23 '16 09:12 rkrejci

OK, thanks.

fanchanghu avatar Dec 23 '16 13:12 fanchanghu