[YANGTOOLS-632] Yang 1.0: Shorthand case should create case node in schema tree Created: 11/Jul/16  Updated: 10/Apr/22  Resolved: 27/Mar/17

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

Type: Bug
Reporter: Vratko Polak 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


Issue Links:
Blocks
is blocked by BIER-4 Refine path does not include implicit... Resolved
External issue ID: 6183

 Description   

Yang 1.1 requires this explicitly. https://tools.ietf.org/html/draft-ietf-netmod-rfc6020bis-14#section-7.9.2

Yang 1.0 mentions case nodes for omitted case statements, but does not explicitly require case nodes to be present in schema tree. https://tools.ietf.org/html/rfc6020#section-7.9.2

Current parser implementation seems so omit case nodes also in schema tree, which may lead to users creating Yang 1.1 incompatible modules.
This Change Request is opened so that this particular behavioral change is separated from real incompatibilities between 1.0 and 1.1 semantics.

Example model to follow shortly.



 Comments   
Comment by Vratko Polak [ 11/Jul/16 ]

> Example model to follow shortly.

https://git.opendaylight.org/gerrit/#/c/41655/1

Contains a "good" module with explicit case statement and two augmentations, and a "bug" module with shorthand case and equivalent augmentations.

Comment by Peter Kajsa [ 17/Mar/17 ]

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

Comment by Peter Kajsa [ 21/Mar/17 ]

weather item: https://wiki.opendaylight.org/view/Weather#Schema_node_identifiers_MUST_always_explicitly_include_the_implicit_case_node_identifiers

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