[YANGTOOLS-69] Parsing of identical augmentations from different models fails Created: 10/Jan/14  Updated: 10/Apr/22  Resolved: 21/Jan/14

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

Type: Bug
Reporter: Dana Kutenicsova Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 280
Priority: High

 Description   

Having model ROOT and two models A and B (all three different namespace), if A and B have the same augment instruction to augment ROOT, the parsing fails with error:

[ERROR] yang-to-sources: Unable to parse yang files
org.opendaylight.yangtools.yang.parser.util.YangParseException: Error in module 'pcep-ietf-stateful' at line 321: Failed to perform augmentation: Error in module 'pcep-message' at line 28: Can not add 'container lsp-db-version' to 'container tlvs' in module 'pcep-message': node with same name already declared at line 28

commit: https://git.opendaylight.org/gerrit/#/c/4140/

model A:
augment "/msg:open/msg:open-message/msg:open/msg:tlvs"

{ uses lsp-db-version-tlv; uses predundancy-group-id-tlv; uses stateful-capability-tlv; }

model B:
augment "/msg:open/msg:open-message/msg:open/msg:tlvs"

{ uses stateful-capability-tlv; uses lsp-db-version-tlv; }

 Comments   
Comment by Martin Vitez [ 21/Jan/14 ]

Fixed.

https://git.opendaylight.org/gerrit/#/c/4173/

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