libyang icon indicating copy to clipboard operation
libyang copied to clipboard

How Do I Modify a Model Using a Hot Patch?

Open NextLitete opened this issue 2 years ago • 1 comments

A model already exists in the current context. I would like to modify this model to be implemented in a patch. In libyang1, I can use ly_ctx_remove_module to uninstall a model and then reload a new version of the model. Does libyang2 provide similar functions?

NextLitete avatar Feb 23 '24 03:02 NextLitete

You cannot directly do this anymore (the operation is simply too complex) and you may simply create a new context with the new module instead of the old one. YANG can have lots of inter-dependencies between the modules and to recheck them all is just not worth it.

michalvasko avatar Feb 23 '24 09:02 michalvasko

fine

NextLitete avatar Jun 28 '24 09:06 NextLitete