On Wed, Oct 5, 2022 at 2:07 PM Jürgen Schönwälder <
j.schoenwael...@jacobs-university.de> wrote:

> On Wed, Oct 05, 2022 at 09:53:23AM -0700, Andy Bierman wrote:
> >
> > The length "64" is not random.
> > https://www.rfc-editor.org/rfc/rfc7950.html#section-6.2
> >
>
> Note the difference between specifying a aaximum length and soecifying
> a minimum length that must be supported.
>
>
>From a practical POV the length 64 was chosen because it is reasonable
to assume all implementations can support it.

A server can always reject a request with a 'too-big' error, but clients
want to avoid that.  The YANG designer should pick data types carefully
and decide what is a reasonable max-length. Or deal with the 'too-big'
errors or large server memory usage using plain string.



> /js
>
>
Andy


> --
> Jürgen Schönwälder              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
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to