[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
Platform: PC


Attachments: Zip Archive yang.zip    
Issue Links:
Blocks
blocks YANGTOOLS-108 Milestone : Bugfixing for Helium Resolved
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:
https://git.opendaylight.org/gerrit/#/c/5799/

Generated at Wed Feb 07 20:52:17 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.