Re: [netmod] [Technical Errata Reported] RFC7950 (5157)

Ladislav Lhotka <lhotka@nic.cz> Mon, 23 October 2017 12:59 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7B87913F4D7 for <netmod@ietfa.amsl.com>; Mon, 23 Oct 2017 05:59:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a3DB_TV80NrY for <netmod@ietfa.amsl.com>; Mon, 23 Oct 2017 05:59:01 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DFB3B13F5B8 for <netmod@ietf.org>; Mon, 23 Oct 2017 05:56:29 -0700 (PDT)
Received: from birdie44 (unknown [IPv6:2001:718:1a02:1::380]) by mail.nic.cz (Postfix) with ESMTPSA id 0A1CB61CF9 for <netmod@ietf.org>; Mon, 23 Oct 2017 14:56:28 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1508763388; bh=gXDZZzHin9sNZ5r9XIso5DHxFNOD7x/fwUAVzeSKYEI=; h=From:To:Date; b=p0TKNf+tiV1siqrVHAE7AD+NRcik8UzWrK+146zN8fsF6Mc5eYub7phEzrYHBWsTr QfnwMM6OGp6iBmM2Y8CRI7k2AWKDzr9pzIsP5OlaQHO+2Xwu9P2dILnonykQlSquPC O+umbe8Y+0i47BtMfnxJnvTP4fpmy94dhcSThdXQ=
Message-ID: <1508763445.18248.13.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: netmod@ietf.org
Date: Mon, 23 Oct 2017 14:57:25 +0200
In-Reply-To: <20171023.103513.1336510497564838401.mbj@tail-f.com>
References: <20171016190431.5FA26B80E0F@rfc-editor.org> <67172aec-686f-90ba-0fc8-1ce2bc3dcdb4@cisco.com> <20171023.103513.1336510497564838401.mbj@tail-f.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.26.1
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/oNi4XN9kO6JYOhUN0N7q3UcWdtE>
Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (5157)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Oct 2017 12:59:03 -0000

On Mon, 2017-10-23 at 10:35 +0200, Martin Bjorklund wrote:
> Benoit Claise <bclaise@cisco.com> 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 <andy@yumaworks.com>
> > > 
> > > 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
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67