Closed TribuneX closed 11 months ago
That seems to be rather an error in the YANG modules, not with pyangbind.
Maybe a recent version of the YANG model does not have a dependency loop.
True. We found the same issue with other yang tools. It needs to be fixed in the model rather than the tooling.
In ygot/goyang, we added a flag to the generator to ignore circular dependencies, since this model seemed to still compile like this. The error that pyangbind is throwing here is just reacting to pyang's output -- so something similar could be done here. (It's not necessarily clear that this will make the modules build in all cases.)
@TribuneX , OK to close this issue, as likely the dependency loop would be fixed in the YANG model?
I am trying to generate classes for the yang models provided by Nokia: https://github.com/nokia/7x50_YangModels/tree/db3ffd43852235c9ec453625df3b8ca9ccf3c742
e.g. the nokia-conf.yang
However, I get the following error during code generation:
Anybody tried to generate classes from those models yet?