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

Andy Bierman <andy@yumaworks.com> Mon, 23 October 2017 17:41 UTC

Return-Path: <andy@yumaworks.com>
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 A1BAC137C4A for <netmod@ietfa.amsl.com>; Mon, 23 Oct 2017 10:41:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 LUDeMleGG3ln for <netmod@ietfa.amsl.com>; Mon, 23 Oct 2017 10:41:51 -0700 (PDT)
Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3018F13968C for <netmod@ietf.org>; Mon, 23 Oct 2017 10:41:51 -0700 (PDT)
Received: by mail-lf0-x234.google.com with SMTP id p184so21009496lfe.12 for <netmod@ietf.org>; Mon, 23 Oct 2017 10:41:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Y/Y3a4jMIzsHGl0yyu7QEg2j/IzQCdkozzwYEeOigUM=; b=z0HREheT1/v/58C2SKos6/Ye7Xm0Ry+xQlLVVxyE4o09Y8DOPitK9K7n7cii+v+JHH 0N7LNzJkdLgJrSN8XUEGSxChKHsnBHTBBdD90kFlAYLZsZTZ4/zTBfoxXCzcUkYChIG3 8+gceWJ4faru30Frgw54CiyUEhuFx7cDgmqakkKvDU/brM11o8bY4HhbD8wImBzDgyoB b0Avcdc+9g1dPUNlU7/iiykYNNB7+daU77fVpk0aCw+r3iTKXkMuypQ2DRkTxHMMmY5H eynqcFGI/piu2GNiYBBa50X5egBwXry2QsJ/cCuJen+6YZrClPuzqPTO75awEs4LAYz+ qNMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Y/Y3a4jMIzsHGl0yyu7QEg2j/IzQCdkozzwYEeOigUM=; b=NtVMZhjf+ew6SOUqA5gayz8ad6VJl1n/jXYYZ9hpRzks/1+rneBCAueCcr3GsYcbcA rD+8PZsCgtPrKwUfGXKttdx2+g28onkbwdCV0yjIK2J/DwiRllLhORd1BM43paF7jWfe 24tX5Y+TgLQr5V8RPE8CEKk05hamAJNRwNk5ZKHTi/iddyBm+QHSin0VJTh7ehwSpW9W YzCllufCgF8G/gO1/ASMihvN6qT15VTYTc2CJ1p62k93JLuKHq6EWYWUrbkK8Ni1NQBG nI1/KyBHECOGhuu6eRN73kW/rKbCT3cqGvj3zI67ueGcOtgTLuoToVob4W1NUDklQAOn Blxg==
X-Gm-Message-State: AMCzsaVrXa9HlD+SU0Z08JD3Hx+b5uMIKWMpEt/hdUZC0/HpsQ+mHj1o LHiyw2WwIN7SmwP106cGaXapo6oByWpTTfXE/8Wz/Q==
X-Google-Smtp-Source: ABhQp+QG1lvYrbd8Hb4ulgxzp4Hfj2bBg+ZM4zcY+P6IN3B32t+QM2JEO21wc46rO64wF9J8aIwsURbIUo9rfLDK9dU=
X-Received: by 10.25.104.21 with SMTP id d21mr2288903lfc.45.1508780509335; Mon, 23 Oct 2017 10:41:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.150.198 with HTTP; Mon, 23 Oct 2017 10:41:48 -0700 (PDT)
In-Reply-To: <20171023.163039.1034668943501669872.mbj@tail-f.com>
References: <67172aec-686f-90ba-0fc8-1ce2bc3dcdb4@cisco.com> <20171023.103513.1336510497564838401.mbj@tail-f.com> <CABCOCHRqG9DNJf9q0xG1x+Rjy3oAAOoh1EawcCLQwwy=edHk3g@mail.gmail.com> <20171023.163039.1034668943501669872.mbj@tail-f.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 23 Oct 2017 10:41:48 -0700
Message-ID: <CABCOCHRf69VbjPZQ_EpmuFL+FZ+JVxy5b+F4=XPkFR8dU4B1_Q@mail.gmail.com>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: Benoit Claise <bclaise@cisco.com>, Warren Kumari <warren@kumari.net>, Kent Watsen <kwatsen@juniper.net>, Berger Lou <lberger@labn.net>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="f403045e56164dac9a055c3a56b7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/psi9mXqwnCwvbL7-2reIbaMslLE>
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 17:41:54 -0000

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


On Mon, Oct 23, 2017 at 7:30 AM, Martin Bjorklund <mbj@tail-f.com> wrote:

> Andy Bierman <andy@yumaworks.com> wrote:
> > On Mon, Oct 23, 2017 at 1:35 AM, Martin Bjorklund <mbj@tail-f.com>
> 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.
> > >
> > >
> > It's OK to leave this out since it requires a code change.
> >
> >
> > Read sec. 2.3 again:
>
> Wrong thread?
>
> > The node test text() is true for any text node.
>
> Sure, but a node test is not a predicate!
>
>
> /martin
>
>
>
> >
> >
> >
> >
> > >
> > > /martin
> > >
> > >
> >
> > Andy
> >
> >
> > >
> > > >
> > > > 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
> > > > > .
> > > > >
> > > >
> > >
>