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

Kent Watsen <kwatsen@juniper.net> Mon, 23 October 2017 17:52 UTC

Return-Path: <kwatsen@juniper.net>
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 987A51397F3 for <netmod@ietfa.amsl.com>; Mon, 23 Oct 2017 10:52:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.8
X-Spam-Level:
X-Spam-Status: No, score=-4.8 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=juniper.net
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 0AxNVvd7l3Ir for <netmod@ietfa.amsl.com>; Mon, 23 Oct 2017 10:52:03 -0700 (PDT)
Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0132.outbound.protection.outlook.com [104.47.38.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B9D51137C4A for <netmod@ietf.org>; Mon, 23 Oct 2017 10:52:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VqYLYkbbCKFpDIRxocm62cVKx3vgN7tAtMPwdrwPArY=; b=K8ZttWdM9aD5ZbsN6r2572Witoyc08OSZ4u1ZaEwGDY8hVWVo+8NDmSOuIs6UCN6QO8VNou5A+GEGi/mWD51e521d9hRGOLRL/l8OdJq6xerqPmvUyb7b9dyAoVoIiBEzOpFzI46SL8FViLOSLKWuLd8CHPsG/jkA/xsEt+YFv8=
Received: from BN1PR05MB280.namprd05.prod.outlook.com (10.141.64.153) by BN1PR05MB278.namprd05.prod.outlook.com (10.141.64.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.3; Mon, 23 Oct 2017 17:52:00 +0000
Received: from BN1PR05MB280.namprd05.prod.outlook.com ([fe80::2501:f69b:d3d5:1497]) by BN1PR05MB280.namprd05.prod.outlook.com ([fe80::2501:f69b:d3d5:1497%14]) with mapi id 15.20.0178.003; Mon, 23 Oct 2017 17:52:00 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>
CC: Benoit Claise <bclaise@cisco.com>, Warren Kumari <warren@kumari.net>, Berger Lou <lberger@labn.net>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [Technical Errata Reported] RFC7950 (5157)
Thread-Index: AQHTRrGnHd+5aLr6G0SoL0OtwQRLyqLt7x4AgAM3LoCAAGIqgIAAASWAgAA1aAD//7/QAA==
Date: Mon, 23 Oct 2017 17:52:00 +0000
Message-ID: <0EAFE79B-CA28-4292-9E68-5AC87CA9957A@juniper.net>
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> <CABCOCHRf69VbjPZQ_EpmuFL+FZ+JVxy5b+F4=XPkFR8dU4B1_Q@mail.gmail.com>
In-Reply-To: <CABCOCHRf69VbjPZQ_EpmuFL+FZ+JVxy5b+F4=XPkFR8dU4B1_Q@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-originating-ip: [66.129.241.14]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BN1PR05MB278; 6:Q7TbDkRv8OXs8b8kmW3TwzEG19ubIIi3ie740XEhfUGEsm4wNgMGW7R9JyhmnhskJTTUFWNo3jnmAVYJPO5d19rdBQmlnxImAzhGpX4oheNZzJ6oCUSM650o5w1BqM+iw0vNDtwtA/jk/yT44IBwgg9K0apsT2qOFls2twu3qeW2X4+EJowBKbQXIb/kEKad1IAdvq/IYGzCivK2NQJE6YPh9nb+FgizEDXniHqHaLAd/KMm9NYmU4T83IP03warZZPK9zO/cvZDOVFFa5ZQlDV5e9YirSZlZFC3UqlxzRyGjSCHFmiSYjsblgf8I6Kv/n/OVyqJVhPbEKhvctcR6upzZw7+UNquaJTMf27tu1A=; 5:EiMhCv4Upa1JMGBuSbsPcUx2hyiuTuwdlzU45hhoDW9WGe3tyB3/YVoCv4E4UtB6WPpaLgWnYFQnXcQbD4fwDLm6Tkwn9Q1PkFO0mSxkR3DTjuzgxfDZVeVnjRY77dE1UH8A56Zl17qWx20i961kO2P7gQRseffcbtpetmdCVdg=; 24:XbhkvI5UK7spWvhkLCPQASqGMduE2QX3ePfmyZmqvIx7H5Nse+3g1FP82s5ReizkYRI2Czr6mqSEnxYbAvL1W1q9RZ5Sk9NKRL5ClJk06js=; 7:mEXzcMgKGxoacZwg7KEA7uWOYAUwP7q9ds0sELibpnucOESPyHDCdNJgM2XznsqPQt9WIiRt/+xlqymXuqCD6Umocp944xKc+71j1kwhBh11Mq2vfTntratuzm2ioemIF8I8L/cssybiNvF2ys/zhKBQ5Y4P95/uarVFc8ZQKvXVC3cDZijPQBxO6eY9j0Od5DFoxVJtbVuWEzyY87PRXY3Jd6Byr8hiaXDMckA1LAmAVGXlyHzUJrCSP1tP9VSc
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: f59f2576-9d21-4a42-f6fd-08d51a3ec302
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603229); SRVR:BN1PR05MB278;
x-ms-traffictypediagnostic: BN1PR05MB278:
x-exchange-antispam-report-test: UriScan:(10436049006162)(166708455590820)(95692535739014)(21748063052155);
x-microsoft-antispam-prvs: <BN1PR05MB2789D47917E65A61A653A09A5460@BN1PR05MB278.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(3231020)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123562025)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR05MB278; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR05MB278;
x-forefront-prvs: 046985391D
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(39860400002)(346002)(199003)(189002)(24454002)(966005)(2900100001)(3846002)(66066001)(101416001)(6116002)(102836003)(50986999)(76176999)(54356999)(2950100002)(33656002)(105586002)(68736007)(106356001)(3660700001)(81156014)(7736002)(8676002)(81166006)(3280700002)(8936002)(189998001)(478600001)(2906002)(5660300001)(99286003)(53546010)(606006)(6246003)(83506002)(58126008)(36756003)(110136005)(54906003)(93886005)(4326008)(6486002)(53936002)(6436002)(6306002)(5250100002)(97736004)(83716003)(6506006)(25786009)(14454004)(82746002)(54896002)(236005)(229853002)(316002)(6512007)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR05MB278; H:BN1PR05MB280.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_0EAFE79BCA2842929E685AC87CA9957Ajunipernet_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: f59f2576-9d21-4a42-f6fd-08d51a3ec302
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2017 17:52:00.3276 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR05MB278
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/-7yJlKPve4Yn5lQIuhKcMhpSsjk>
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:52:05 -0000

Added.  https://github.com/netmod-wg/yang-next/issues/30

K.

On 10/23/17, 1:41 PM, "Andy Bierman" <andy@yumaworks.com<mailto:andy@yumaworks.com>> wrote:

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<mailto:mbj@tail-f.com>> wrote:
Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com>> wrote:
> On Mon, Oct 23, 2017 at 1:35 AM, Martin Bjorklund <mbj@tail-f.com<mailto:mbj@tail-f.com>> wrote:
>
> > Benoit Claise <bclaise@cisco.com<mailto: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<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rfc-2Deditor.org_errata_eid5157&d=DwMFaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=iqphTMkp51dLrCM-UzlrEywuJe9XtROxO8pnSRN0A7A&s=uwZM3AV1UAHdT57ba-bWCNGRcGtQ-1758c4l9ttQRUM&e=>
> > > >
> > > > --------------------------------------
> > > > Type: Technical
> > > > Reported by: Andy Bierman <andy@yumaworks.com<mailto: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
> > > > .
> > > >
> > >
> >