[YANGTOOLS-963] YANG parser does not complain about invalid enum default after refining enum Created: 07/Mar/19 Updated: 07/Mar/19 Resolved: 07/Mar/19 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | 2.0.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Low |
| Reporter: | Peter Verthez | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
We are using version 2.0.11. According to the YANG RFC https://tools.ietf.org/html/rfc7950#section-7.3.4 : If the type's default value is not valid according to the new restrictions specified in a derived type or leaf definition, the derived type or leaf definition MUST specify a new default value compatible with the restrictions. The YANG parser does not complain about this, see the example yang model attached to this ticket, which is parsed without error. For the same YANG model, pyang reports the following error: |