Re: [netmod] [Editorial Errata Reported] RFC7950 (5698)
Martin Bjorklund <mbj@tail-f.com> Wed, 24 April 2019 10:06 UTC
Return-Path: <mbj@tail-f.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 020BB120089 for <netmod@ietfa.amsl.com>; Wed, 24 Apr 2019 03:06:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 QVvM47JYo6yV for <netmod@ietfa.amsl.com>; Wed, 24 Apr 2019 03:06:34 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 1F23E120021 for <netmod@ietf.org>; Wed, 24 Apr 2019 03:06:34 -0700 (PDT)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id F149A1AE0473; Wed, 24 Apr 2019 12:06:30 +0200 (CEST)
Date: Wed, 24 Apr 2019 12:06:33 +0200
Message-Id: <20190424.120633.138234857864410670.mbj@tail-f.com>
To: rfc-editor@rfc-editor.org
Cc: ibagdona@gmail.com, warren@kumari.net, joelja@bogus.com, kent+ietf@watsen.net, lberger@labn.net, andy@yumaworks.com, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <20190418211404.6835FB8286E@rfc-editor.org>
References: <20190418211404.6835FB8286E@rfc-editor.org>
X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/mWUnwgjCV9-MHW2VeJYKKGACxFA>
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 10:06:37 -0000
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