Re: [netmod] [Editorial Errata Reported] RFC7950 (5642)
Kent Watsen <kent+ietf@watsen.net> Wed, 27 February 2019 16:37 UTC
Return-Path: <010001692fd110d5-8bc88365-4d0f-4595-9337-1a2b1ce2d6cd-000000@amazonses.watsen.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 7FA18130EE1 for <netmod@ietfa.amsl.com>; Wed, 27 Feb 2019 08:37:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.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 9u-IeCjYVTPy for <netmod@ietfa.amsl.com>; Wed, 27 Feb 2019 08:37:05 -0800 (PST)
Received: from a8-31.smtp-out.amazonses.com (a8-31.smtp-out.amazonses.com [54.240.8.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 97749130EA7 for <netmod@ietf.org>; Wed, 27 Feb 2019 08:37:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1551285424; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=2a9ilnWMMVqmOYCUU528pjiVrLqEkA//wCQc+zuj2xk=; b=TKZ14MZnCzGB+/PMNiVReGCX0MCfo58ZiBp9RYFigcsgYfHs2d3DnssV+kHzM73s 9bNT0xlWUdVKxWnWAy4c3nUWJQdxgbG4oPM4CN3TWCnm/DaOcS6sev6/ikTY35FeDHg RZ+5EfQYPiWLo/w99rg0OBE6g9Evl63LEQkzjVCQ=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <010001692fd110d5-8bc88365-4d0f-4595-9337-1a2b1ce2d6cd-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_EB2724F4-B4D9-4442-9405-6989C31296FC"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Date: Wed, 27 Feb 2019 16:37:04 +0000
In-Reply-To: <HE1PR0701MB29053FE1EC7A4F199C688050EA7E0@HE1PR0701MB2905.eurprd07.prod.outlook.com>
Cc: Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>, Ignas Bagdonas <ibagdona@gmail.com>, Warren Kumari <warren@kumari.net>, NetMod WG <netmod@ietf.org>, RFC Editor <rfc-editor@rfc-editor.org>
To: Peter Loborg <peter.loborg@ericsson.com>
References: <20190221163919.5196EB81AF4@rfc-editor.org> <20190221.175336.1995849216024607593.mbj@tail-f.com> <CABCOCHQMAq-vzANerP3ehY1y9fiiQZKY_S4dEh0qfhO=7bS8hA@mail.gmail.com> <HE1PR0701MB29053FE1EC7A4F199C688050EA7E0@HE1PR0701MB2905.eurprd07.prod.outlook.com>
X-Mailer: Apple Mail (2.3445.102.3)
X-SES-Outgoing: 2019.02.27-54.240.8.31
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/hpff-r9Jobr5eQSN7eV9mN8iCog>
Subject: Re: [netmod] [Editorial Errata Reported] RFC7950 (5642)
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, 27 Feb 2019 16:37:09 -0000
Note: I just released this this email. Peter sent it on the 22nd, but it was trapped by Mailman: Post by non-member to a members-only list Kent // co-chair > On Feb 21, 2019, at 1:06 PM, Peter Loborg <peter.loborg@ericsson.com> wrote: > > > Your example is fine – but the gammar is ch14 specifies something different: > > enum-stmt = enum-keyword sep string optsep > (";" / > "{" stmtsep > ;; these stmts can appear in any order > *if-feature-stmt > [value-stmt] > [status-stmt] > [description-stmt] > [reference-stmt] > "}") stmtsep > > It clearly states string, not quoted-string. These two have the following rules: > > quoted-string = (DQUOTE string DQUOTE) / (SQUOTE string SQUOTE) > > string = < an unquoted string, as returned by > > < the scanner, that matches the rule > > < yang-string > > > …and in 6.1.3 we can read that: > An unquoted string is any sequence of characters that does not > contain any space, tab, carriage return, or line feed characters, a > single or double quote character, a semicolon (";"), braces ("{" or > "}"), or comment sequences ("//", "/*", or "*/"). > > Note that any keyword can legally appear as an unquoted string. > > Since the section so clearly writes about single quoted strings and double quoted strings, there can unfortunately be no interpretation that would allow “identifier” to be called an unquoted string – even though it follows the rules about limited character contents. > > Hence – this is not a matter of opinion – it’s a matter of reading what’s actually written in the RFC. > > But on the subject of opinion… > > enum "This is also legal"; // should definitely always be illegal > > …as we cannot create a language binding to enum constructs in any major programming languages. > > Br, > Peter > > > From: Andy Bierman <andy@yumaworks.com <mailto:andy@yumaworks.com>> > Sent: den 21 februari 2019 18:45 > To: Martin Bjorklund <mbj@tail-f.com <mailto:mbj@tail-f.com>> > Cc: RFC Editor <rfc-editor@rfc-editor.org <mailto:rfc-editor@rfc-editor.org>>; Ignas Bagdonas <ibagdona@gmail.com <mailto:ibagdona@gmail.com>>; NetMod WG <netmod@ietf.org <mailto:netmod@ietf.org>>; Peter Loborg <peter.loborg@ericsson.com <mailto:peter.loborg@ericsson.com>>; Warren Kumari <warren@kumari.net <mailto:warren@kumari.net>> > Subject: Re: [netmod] [Editorial Errata Reported] RFC7950 (5642) > > > > On Thu, Feb 21, 2019 at 8:53 AM Martin Bjorklund <mbj@tail-f.com <mailto:mbj@tail-f.com>> wrote: > RFC Errata System <rfc-editor@rfc-editor.org <mailto: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/eid5642 <http://www.rfc-editor.org/errata/eid5642> > > > > -------------------------------------- > > Type: Editorial > > Reported by: Peter Loborg <peter.loborg@ericsson.com <mailto:peter.loborg@ericsson.com>> > > > > Section: 9.6.4 > > > > Original Text > > ------------- > > It takes as an argument a string that is the assigned name. > > > > Corrected Text > > -------------- > > It takes as an argument an unquoted string that is the assigned name. > > This is not correct. The enum argument is not different from any > other keyword's arguments in YANG. See e.g. the example in 9.12.4: > > type enumeration { > enum "unbounded"; > } > > The following is also legal: > > enum "unb" + 'ounded'; > > > > > enum "This is also legal"; > > 9.6.4. The "enum" Statement > > The "enum" statement, which is a substatement to the "type" > statement, MUST be present if the type is "enumeration". It is > repeatedly used to specify each assigned name of an enumeration type. > It takes as an argument a string that is the assigned name. The > string MUST NOT be zero-length and MUST NOT have any leading or > trailing whitespace characters (any Unicode character with the > "White_Space" property). The use of Unicode control codes SHOULD be > avoided. > > > This errata should be rejected. > > > > /martin > > > > Andy > > > > > > Notes > > ----- > > Readers are not beeing made aware that careful reading of section 6.1.3 and the detailed definition of string in section 14 must be consulted. > > For comming versions of this RFC it would be preferable to use a more specialized grammar token for these cases (e.g. unquoted-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 mailing list > netmod@ietf.org <mailto:netmod@ietf.org> > https://www.ietf.org/mailman/listinfo/netmod <https://www.ietf.org/mailman/listinfo/netmod>_______________________________________________ > netmod mailing list > netmod@ietf.org <mailto:netmod@ietf.org> > https://www.ietf.org/mailman/listinfo/netmod <https://www.ietf.org/mailman/listinfo/netmod>
- [netmod] [Editorial Errata Reported] RFC7950 (564… RFC Errata System
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Martin Bjorklund
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Juergen Schoenwaelder
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Andy Bierman
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Andy Bierman
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Martin Bjorklund
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Juergen Schoenwaelder
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Andy Bierman
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Ladislav Lhotka
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Balázs Lengyel
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Juergen Schoenwaelder
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Balázs Lengyel
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Juergen Schoenwaelder
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Ladislav Lhotka
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Peter Loborg
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Kent Watsen
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Warren Kumari
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Martin Bjorklund
- Re: [netmod] [Editorial Errata Reported] RFC7950 … Joel Jaeggli