RFC Errata
RFC 7950, "The YANG 1.1 Data Modeling Language", August 2016
Note: This RFC has been updated by RFC 8342, RFC 8526
Source of RFC: netmod (ops)
Errata ID: 5157
Status: Rejected
Type: Technical
Publication Format(s) : TEXT
Reported By: Andy Bierman
Date Reported: 2017-10-16
Rejected by: Benoit Claise
Date Rejected: 2017-10-23
Section 14 says:
key-predicate-expr = node-identifier *WSP "=" *WSP quoted-string
It should say:
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]
--VERIFIER NOTES--
Hi,
To be clear, I am withdrawing this errata because existing implementations
may not accept a numeric literal in an instance-identifier.
I think this should be addressed in YANG 2.0 and this thread should be
recorded in the yang-next issue trac ker.
Andy