[YANGTOOLS-799] Incorrect schema path of used inner type ? Created: 20/Jul/17  Updated: 10/Apr/22  Resolved: 01/Aug/17

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

Type: Bug
Reporter: Jie Han Assignee: Unassigned
Resolution: Cannot Reproduce 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: 8871

 Description   

Yang snippet:

notification open

{ uses open-message; }

grouping open-message {
leaf test-union {
type union

{ type string; type int64; }

}
}

Is it correct the path of union used in notification "open" still be "open-message/test-union/union" which is same with the path of union in grouping open-message?



 Comments   
Comment by Peter Kajsa [ 31/Jul/17 ]

Current implementation does not copy "types" from groupings, but the original definition of a type is reused. This behavior has been introduced due to the following bug https://bugs.opendaylight.org/show_bug.cgi?id=2624.

Comment by Robert Varga [ 01/Aug/17 ]

https://tools.ietf.org/html/rfc7950#section-7.12

Prefix mappings, type names,
grouping names, and extension usage are evaluated in the hierarchy
where the "grouping" statement appears.

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