On Wed, Apr 22, 2020 at 11:17:26PM +0200, Robert Varga wrote:
> Hello,
>
> a number of IETF protocols-and-whatnots are operating on unsigned 24bit
> (or 3-octet) entities. For example:
>
> https://tools.ietf.org/html/rfc7471#section-4.1.5
> https://tools.ietf.org/html/rfc7471#section-4.4.5
> SRGB range start/length in https://tools.ietf.org/html/rfc8669
For these use cases, it might be also a good idea to define types that
capture the additional semantics. SRGB seems to consist of two 24-bit
values - I can't tell whether it makes sense to model this 6-octet
value as two 3-octet values in YANG.
> I wonder whether it would make sense to provide something like:
>
> type uint24 {
> type uint32;
> range 0..16777215;
> }
>
> in ietf-inet-types as a common base type for such definitions.
If we add such a definition, it likely should go into ietf-yang-types.
/js
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany
Fax: +49 421 200 3103 <https://www.jacobs-university.de/>
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod