[YANGTOOLS-683] [Yang 1.1] Allow enumerations and bits to be subtyped Created: 06/Oct/16  Updated: 10/Apr/22  Resolved: 23/Feb/17

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

Type: Bug
Reporter: Peter Kajsa Assignee: Igor Foltin
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
blocks YANGTOOLS-355 Milestone: Introduce support for YANG... Resolved
is blocked by YANGTOOLS-664 Extend yang statement parser to suppo... Resolved
External issue ID: 6887

 Comments   
Comment by Robert Varga [ 19/Oct/16 ]

Enumeration's restrictions: https://tools.ietf.org/html/rfc7950#section-9.6.3
Bit's restrictions: https://tools.ietf.org/html/rfc7950#section-9.7.1

This means that model.util.type needs to grow the concept of

{Bit,Enumeration}

RestrictedType.

Comment by Robert Varga [ 19/Oct/16 ]

The concept of RestrictedEnumerationType is already there, but assumes the set of allowed values remains the same. Hence this boils down to updating the associated builder.

Comment by Igor Foltin [ 06/Feb/17 ]

Fix: https://git.opendaylight.org/gerrit/#/c/51453/

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