[YANGTOOLS-874] Define YANG cardinality extensions Created: 03/Apr/18  Updated: 03/Apr/18

Status: Confirmed
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We are reusing leaf nodes for well-known-low-cardinality types (YANGTOOLS-494). In order to cover more types we need a YANG extension which can be used to hint cardinality.

There are three extensions we need:

  • cardinality:exact, where the set of possible matching values for a type is known at design time. This can be attached to a leaf, leaf-list and typedef. The size of the set should be specified as the argument.
  • cardinality:low, where the set size is known, but expected to be low – such that it can be used with LRU interners. This can be additionally attached to container, input, output, notification, case, choice and list statements.

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