On Mon, 2017-10-23 at 10:35 +0200, Martin Bjorklund wrote:
> Benoit Claise <[email protected]> wrote:
> > Dear all,
> > 
> > Shall I validate this one?
> 
> No I don't think this is correct.  We choose a quoted string to be
> able to correctly represent all YANG integer and decimal64 values.
> Note that XPath doesn't have integers, just 64-bit floats.  This means
> that not all 64-bit integers can be expressed as numbers in XPath.

I agree this would be a change in the spec, not an erratum. On the other hand,
it would be possible to use the JSON representation of scalar values as defined
in RFC 7951, which addresses the problems with 64-bit numbers.

Lada

> 
> 
> /martin
> 
> 
> > 
> > Regards, Benoit
> > > The following errata report has been submitted for RFC7950,
> > > "The YANG 1.1 Data Modeling Language".
> > > 
> > > --------------------------------------
> > > You may review the report below and at:
> > > http://www.rfc-editor.org/errata/eid5157
> > > 
> > > --------------------------------------
> > > Type: Technical
> > > Reported by: Andy Bierman <[email protected]>
> > > 
> > > Section: 14
> > > 
> > > Original Text
> > > -------------
> > >    key-predicate-expr  = node-identifier *WSP "=" *WSP quoted-string
> > > 
> > > Corrected Text
> > > --------------
> > >    key-predicate-expr  = node-identifier *WSP "=" *WSP
> > >          (quoted-string / integer-value / decimal-value)
> > > 
> > > Notes
> > > -----
> > > An instance identifier is forced to specify every key value to be a
> > > string
> > > even though the YANG key leaf type could be a numeric type.
> > > XPath does not require a quoted string here, just YANG.
> > > 
> > > Old:  /top/list[idx="4"]
> > > New: /top/list[idx=4]
> > > 
> > > Instructions:
> > > -------------
> > > This erratum is currently posted as "Reported". If necessary, please
> > > use "Reply All" to discuss whether it should be verified or
> > > rejected. When a decision is reached, the verifying party
> > > can log in to change the status and edit the report, if necessary.
> > > 
> > > --------------------------------------
> > > RFC7950 (draft-ietf-netmod-rfc6020bis-14)
> > > --------------------------------------
> > > Title               : The YANG 1.1 Data Modeling Language
> > > Publication Date    : August 2016
> > > Author(s)           : M. Bjorklund, Ed.
> > > Category            : PROPOSED STANDARD
> > > Source              : NETCONF Data Modeling Language
> > > Area                : Operations and Management
> > > Stream              : IETF
> > > Verifying Party     : IESG
> > > .
> > > 
> 
> _______________________________________________
> netmod mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/netmod
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to