[YANGTOOLS-571] yangtools gives error on yang module that passes pyang ok Created: 13/Jan/16  Updated: 10/Apr/22  Due: 03/Mar/16  Resolved: 12/Feb/16

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Giles Heron Assignee: Peter Kajsa
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4958

 Description   

I'm having issues mounting a device where one of the yang models fails in yangtools:

2016-01-13 13:37:45,467 | DEBUG | sing-executor-12 | SharedSchemaContextFactory | 85 - org.opendaylight.yangtools.yang-parser-impl - 0.7.4.SNAPSHOT | Failed to assemble sources
org.opendaylight.yangtools.yang.parser.util.YangParseException: Error in module 'Cisco-IOS-XR-ipv6-ospfv3-cfg' at line 1150: Can not add 'container exclude-interfaces' to 'container per-prefix' in module 'Cisco-IOS-XR-ipv6-ospfv3-cfg': node with same name already declared at line 1150
at org.opendaylight.yangtools.yang.parser.builder.util.AbstractDocumentedDataNodeContainerBuilder.checkIsPresent(AbstractDocumentedDataNodeContainerBuilder.java:122)[85:org.opendaylight.yangtools.yang-parser-impl:0.7.4.SNAPSHOT]

the module in question passes pyang ok.

I can provide debugs, models etc. (the zipped karaf.log is 20MB so won't attach it here).



 Comments   
Comment by Peter Kajsa [ 14/Jan/16 ]

The bug has been replicated in the previous yang parser (lithium & master branch).

The new yang statement parser works fine (master branch).

Comment by Peter Kajsa [ 11/Feb/16 ]

fix: https://git.opendaylight.org/gerrit/#/c/32601/

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