Positional index to records

Hi,

Is there any built-in type for indexing the records in YANG ?

admin@cli> show group definition brief
INDEX  NAME     TAG
---------------------
1      Group1   1
2      Group2   2
3      Group3   3
4      Group4   4
5      Group5   5
6      Group6   6
7      Group7   7
8      Group8   8
9      Group9   9

[ok][2021-04-12 09:16:29]
admin@cli>

Thanks in Advance,

It’s not entirely clean what you mean; of course there are built-in types suitable for modelling a record index, like plain usingned integers of various sizes like uint8; If that’s not descriptive enough, you can typedef your own type based on that. Does that answer your question?