[YANGTOOLS-107] unable load yangs if there is submodule Created: 25/Mar/14 Updated: 10/Apr/22 Resolved: 19/Jun/14 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jozef Gloncak | Assignee: | Ladislav Borak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Windows |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| External issue ID: | 575 | ||||||||
| Priority: | High | ||||||||
| Description |
|
Martin Sunal reported problem to load yang files (see attachment) when there is submodule. I found out that problem is that all of elements (namespaces, augmentations, child nodes... of submodule have namespaces in qname set to null (submodule doesn't have namespace). Problem could be fixed in package yang-parser-impl class YangParserImpl method addSubmoduleToModule. |
| Comments |
| Comment by Jozef Gloncak [ 25/Mar/14 ] |
|
Attachment yang.zip has been added with description: yangs with submodule |
| Comment by Ladislav Borak [ 28/Mar/14 ] |
|
Problem occurs when submodules are added to module by include statement. When submodule is parsing before module to which belongs to, correct namespace isn't known. I added YangParserBaseListenerImpl to set up correct properties before submodules are parsing. Problem was fixed by: |