tail-f-systems / JNC

JNC (Java NETCONF Client) is the name of a Java library for communicating with NETCONF agents, and a plugin for pyang (http://code.google.com/p/pyang/) to generate Java classes from YANG models, to be used by the JNC library.
Other
77 stars 87 forks source link

Autogen of nested yang files #8

Closed alrighttheresham closed 11 years ago

alrighttheresham commented 11 years ago

Hi Emil, I believe that if the following exists.

Yang A imports Yang B which imports Yang C ...

This will fail on the compile stage as Yang C will not get generated.

This can be demonstrated with Yang files I supplied previously as Atlas depends on ietfinterfaces which in turn depends on ianaIfType.

I can manually get round this, though not ideal, as I am not responsible for dependency management, by explicitly generating ianaIfType in advance.

Emil-Tail-f commented 11 years ago

Fixed with recent commit 4c4a922e163a040e89cb329aaff7cbb86a93c504.