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

UML Plugin: Fix incorrect error message when using UML option --uml-no=identity #900

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nkhancock
Copy link
Contributor

When using the UML option --uml-no=identity as listed as available in the help for UML options, pyang issues the following error message, but correctly renders the UML without identities as expected.

"identity" no valid argument to --uml-no=..., valid arguments: ('module', 'leafref', 'uses', 'annotation', 'identityref', 'typedef', 'import', 'circles', 'stereotypes', 'prefix', 'footer', 'title')

This error message is issued becaused the keyword "identity" is not included in the tuple 'nostrings', against which the UML plugin checks the validity of the uml-no arguments.

This fix adds the string "identity" to 'nostrings'. It also reorders the strings (has no effect) to align with the order listed in the help information for easier comparison.

This fix was verified using the module bbf-hardware-types, which contains only feature and identity statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant