[MDSAL-204] yang-to-source error on description Created: 31/Oct/16 Updated: 09/Mar/18 Resolved: 07/Nov/16 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Sven Wisotzky | Assignee: | Martin Ciglan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 7064 |
| Description |
|
yang-to-sources runs into issues for the following sample YANG file: module acme { container acme { type string { length "1..21"; } } //route-distinguisher Following issue is reported: [ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator Using PYANG this YANG file is processed/validated without any issues. The issue is related to the description string. When removing parts from the description, file can be processed without problems: leaf route-distinguisher { |
| Comments |
| Comment by Martin Ciglan [ 02/Nov/16 ] |
|
moving to yangtools, looks like lexer issue |
| Comment by Peter Kajsa [ 03/Nov/16 ] |
|
We tested the attached model and it is not a lexer issue. The problem occurs in BaseTemplate by generation of javadoc, hence moved back to md-sal. |
| Comment by Martin Ciglan [ 07/Nov/16 ] |
|
fix pushed: https://git.opendaylight.org/gerrit/#/c/48055 should be cherry-picked to Boron eventually |
| Comment by Martin Ciglan [ 07/Nov/16 ] |
|
stable/boron: |