Re: [netmod] [Editorial Errata Reported] RFC7950 (5698)
Ignas Bagdonas <ibagdona@gmail.com> Wed, 24 April 2019 11:20 UTC
Return-Path: <ibagdona@gmail.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 BABAA1202D2 for <netmod@ietfa.amsl.com>; Wed, 24 Apr 2019 04:20:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ITNju669r4-E for <netmod@ietfa.amsl.com>; Wed, 24 Apr 2019 04:20:37 -0700 (PDT)
Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (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 8E51612006B for <netmod@ietf.org>; Wed, 24 Apr 2019 04:20:36 -0700 (PDT)
Received: by mail-lj1-x231.google.com with SMTP id q66so16481862ljq.7 for <netmod@ietf.org>; Wed, 24 Apr 2019 04:20:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n+06iPE9BMR9ktYJBBMGu15ups1zrtKjrlDA9mZeIEk=; b=RztJiicqAMk8Za1FMi+MAuu30v9ra5v/B7vwJNb8i+CzrrdM5M1ksGgXDO3c3ftmni GDfKEpD8prwQH4PCshuapboxPsvmP+eyMORQ7xl8pFr+3thQaR6jhddAWpEXWCdJyzCQ vfpofSrydT6Nwlx717l9h4HSf4JVEfuuFB/QJobMwNUj9kobTYFLp0xeMQ42KPJttfq3 tpTaz8J2Vl9KkA8fIQ2wRiHl3oLwibSuoIF51cE+9mg/D1cB/sThzZ0ABYTmWkQ1AtMg ifYOZJM//Xp9eqcfR594DL2MgELnthVsChH0AP3wCIRbW5Hatbc4s7v3jdi969IowfC7 DfTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=n+06iPE9BMR9ktYJBBMGu15ups1zrtKjrlDA9mZeIEk=; b=T9Dy47aOhLoPybxHLxdFOqcJ2NtmEMu+hSY506CxZhziL/6mXLh24E+5rZUmQOwpg0 We2ArULf84FmgqaoJcouBlLom1sd6AiDQu4e1PLy4tHKPf0F+V4XPkAIm/+Qm5RHpVuS Idf5JOxTM5l5BAhgQAA27GDhRCOxAKDC8u1F7T3IRYEQqIJTgETZHRhlbVbkZyTr4utD xD0KzV5zOxtMSuXC4yoFuirFBfL5U0Og/elpb5YQzQaZygjG6e1pPoleMEb1wakVJpok hGkdnDVaP1tCy3WFwyS2rmX/3l6i1A19JFGaM7BPPMXmmiud7R5HDOA4zIn/BKUye38D AaFQ==
X-Gm-Message-State: APjAAAVqxZHGbmKJVngMwNziB1sbFPZXBQpANeyzslgnUTz7tbLS0rxC 9pi9U0AngE2QHFuNmuZJgyVvyDMlGdeBFumMm9Y=
X-Google-Smtp-Source: APXvYqypcb19b9d4ez4d3WyYL1YQuTw3YC5Q2ozrjJAHnyacoVMOvrS4dJwEG8Gd7EinVzdH9qeZPxu0QMIALIFpTVM=
X-Received: by 2002:a2e:8693:: with SMTP id l19mr16649522lji.47.1556104834812; Wed, 24 Apr 2019 04:20:34 -0700 (PDT)
MIME-Version: 1.0
References: <20190418211404.6835FB8286E@rfc-editor.org> <20190424.120633.138234857864410670.mbj@tail-f.com>
In-Reply-To: <20190424.120633.138234857864410670.mbj@tail-f.com>
From: Ignas Bagdonas <ibagdona@gmail.com>
Date: Wed, 24 Apr 2019 12:20:22 +0100
Message-ID: <CABwpohu8uhv2mvUJR8qVqPxU2pdacE3MZ1j-_h2f_W5Ja_sUGg@mail.gmail.com>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: RFC Errata System <rfc-editor@rfc-editor.org>, Warren Kumari <warren@kumari.net>, "EXT - joelja@bogus.com" <joelja@bogus.com>, Kent Watsen <kent+ietf@watsen.net>, Lou Berger <lberger@labn.net>, Andy Bierman <andy@yumaworks.com>, NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e992dc058744e3a8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/DZw4rAiccjf7P4qP9z7JumIxcUk>
Subject: Re: [netmod] [Editorial Errata Reported] RFC7950 (5698)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 24 Apr 2019 11:20:40 -0000
Hi, Errata verified. Thank you. On Wed, Apr 24, 2019 at 11:06 AM Martin Bjorklund <mbj@tail-f.com> wrote: > Hi, > > This errata is correct and should be accepted. > > > /martin > > > RFC Errata System <rfc-editor@rfc-editor.org> wrote: > > 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/eid5698 > > > > -------------------------------------- > > Type: Editorial > > Reported by: Andy Bierman <andy@yumaworks.com> > > > > Section: 7.5.4.3 > > > > Original Text > > ------------- > > container interface { > > leaf ifType { > > type enumeration { > > enum ethernet; > > enum atm; > > } > > } > > leaf ifMTU { > > type uint32; > > } > > must 'ifType != "ethernet" or ifMTU = 1500' { > > error-message "An Ethernet MTU must be 1500"; > > } > > must 'ifType != "atm" or' > > + ' (ifMTU <= 17966 and ifMTU >= 64)' { > > error-message "An ATM MTU must be 64 .. 17966"; > > } > > } > > > > > > Corrected Text > > -------------- > > container interface { > > leaf ifType { > > type enumeration { > > enum ethernet; > > enum atm; > > } > > } > > leaf ifMTU { > > type uint32; > > } > > must 'string(ifType) != "ethernet" or ifMTU = 1500' { > > error-message "An Ethernet MTU must be 1500"; > > } > > must 'string(ifType) != "atm" or' > > + ' (ifMTU <= 17966 and ifMTU >= 64)' { > > error-message "An ATM MTU must be 64 .. 17966"; > > } > > } > > > > > > Notes > > ----- > > The intent of the example is for each must-stmt to be false if the > ifType leaf does not exist. > > However the XPath is incorrect. > > > > From the XPath 1.0 spec, section 3.4, para 5 > > > > If one object to be compared is a node-set and the other is a string, > then the comparison will be true if and only if there is a node in the > node-set such that the result of performing the comparison on the > string-value of the node and the other string is true. > > > > The empty node-set is not implicitly converted to an empty string for a > = or != comparison. > > Instead the string() function must explicitly convert the node-set to a > string > > > > 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 : Network Modeling > > Area : Operations and Management > > Stream : IETF > > Verifying Party : IESG > > >
- [netmod] [Editorial Errata Reported] RFC7950 (569… RFC Errata System
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Martin Bjorklund
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Ignas Bagdonas