Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance generator to indicate how a YANG module was processed #894

Closed
111pontes opened this issue Mar 15, 2019 · 2 comments
Closed

Enhance generator to indicate how a YANG module was processed #894

111pontes opened this issue Mar 15, 2019 · 2 comments

Comments

@111pontes
Copy link
Collaborator

Some of the input YANG modules may not contain data nodes (e.g. type definitions). Some other YANG modules may define data nodes, but be used as augmentation. As the number of input YANG files typically does not match the number of output files, the generator should report how each input file was processed and provide the total number of input files and the total number of output files. I'd suggest to produce the total count as normal output and the detailed description per file as verbose (logging) output.

@ygorelik ygorelik self-assigned this Dec 20, 2019
@ygorelik
Copy link
Collaborator

Implemented in 0.8.4.post1 by adding debug statements, which are enabled with '-v' option.
Examples of log:

Created models archive: /Users/ygorelik/ydk-gen/gen-api/python/ydktest-bundle/[email protected]
Processing 1 of 45 /Users/ygorelik/ydk-gen/gen-api/.cache/models/[email protected]/[email protected]
    Skipping module, because it does not contain top level containers
Processing 2 of 45 /Users/ygorelik/ydk-gen/gen-api/.cache/models/[email protected]/iana-if-type.yang
    Printing python module /Users/ygorelik/ydk-gen/gen-api/python/ydktest-bundle/ydk/models/ydktest/iana_if_type.py
Processing 3 of 45 /Users/ygorelik/ydk-gen/gen-api/.cache/models/[email protected]/[email protected]
    Printing python module /Users/ygorelik/ydk-gen/gen-api/python/ydktest-bundle/ydk/models/ydktest/ietf_aug_base_1.py

@ygorelik ygorelik added the ready label Dec 20, 2019
@ygorelik
Copy link
Collaborator

Resolved the issue in private fork: af672f2c

@111pontes 111pontes changed the title Enhance generator to indicate how a YANG modules was processed Enhance generator to indicate how a YANG module was processed Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants