[YANGTOOLS-607] New yang parser allows two choice cases with identical child elements Created: 02/May/16 Updated: 10/Apr/22 Resolved: 11/May/16 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Igor Foltin | 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 |
||
| External issue ID: | 5829 |
| Description |
|
Let's say we have a yang model which contains this: choice ch { } case b { leaf a { type string; } } This is invalid as both cases contain the same child (with identical QName). New yang parser should detect this problem and throw an Exception. |
| Comments |
| Comment by Peter Kajsa [ 04/May/16 ] |