On Sat, Oct 21, 2017 at 12:28 AM, Benoit Claise <[email protected]> wrote:

> Dear all,
>
> Shall I validate this one?
>
>

To add more context, this relates to the the RESTCONF JSON vs. XML
discussions in the NETCONF WG.

  leaf broken {
      type union {
        type int32;
        type string;
     }
  }

If all values of key leaf "broken" are sent as strings in an
instance-identifier,
then the int32 value may not match in all implementations, instead of the
string.
Allowing numbers as literals in addition to quoted strings allows the sender
to be specific, and all implementations to be consistent.




> Regards, Benoit
>


Andy


> 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

Reply via email to