[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 |
||
| Issue Links: |
|
||||||||
| 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. 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 ] |
| Comment by Peter Kajsa [ 21/Mar/17 ] |