Closed samuel-gauthier closed 1 year ago
Thanks, should be fixed and I also did some additional refactoring again making the type parsing more organized. Your use-case may have been parsed before but the extensions could not have been compiled correctly.
Thanks a lot Michal, the unit tests are working now!
Hi!
We have a regression in the unit tests in libyang-python, when using https://github.com/CESNET/libyang/commit/d595eff5e2762d68c23260089872d22315a70202.
Basically, adding a custom extension on a type referencing a typedef is not working anymore. The problem is seen here: https://github.com/CESNET/libyang-python/blob/master/tests/yang/yolo/yolo-system.yang#L68
The custom type is defined here. https://github.com/CESNET/libyang-python/blob/master/tests/yang/wtf/wtf-types.yang#L36
This patch on libyang-python workarounds the error.
To reproduce easily (I'm not sure if some dependencies are needed...):
Thanks!