-
Notifications
You must be signed in to change notification settings - Fork 38
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
Choice with space is not working in CLIgen code: #24
Comments
Yes. Space is not allowed in CLIgen choice type.
|
Yang Enumeration is considered as choice in Cligen as per my understanding. I am taking an example of Clixon. I modified example.yang in clixon as below:
The clixon_cli parse this yang as : translate{ Which is incorrect and failing the clixon_cli parsing. |
…, see [Choice with space is not working in CLIgen code](clicon/cligen#24)
This should now work using backslash escape code, eg: |
Patch is working as expected. |
thanks |
Choice with a space is not parsed by Cligen code.
Example:
As per yang RFC, space is a valid character in choice type.
Please note: Auto-complete work for first case, but when you press enter, it will say invalid token.
The text was updated successfully, but these errors were encountered: