RFC 7950, "The YANG 1.1 Data Modeling Language", August 2016Source of RFC: netmod (ops)
Errata ID: 5157
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)
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.
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.