Re: [netmod] [Editorial Errata Reported] RFC7950 (5642)

Peter Loborg <peter.loborg@ericsson.com> Thu, 21 February 2019 18:07 UTC

Return-Path: <peter.loborg@ericsson.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 129811310F6 for <netmod@ietfa.amsl.com>; Thu, 21 Feb 2019 10:07:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level:
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-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=ericsson.com header.b=SzDk9SLN; dkim=pass (1024-bit key) header.d=ericsson.com header.b=JBDz/Gja
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 mPgYq-IcGbkx for <netmod@ietfa.amsl.com>; Thu, 21 Feb 2019 10:07:05 -0800 (PST)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99E6E1310D8 for <netmod@ietf.org>; Thu, 21 Feb 2019 10:07:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1550772422; x=1553364422; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6Acq1Cq7PttU1OwLcZIIxs3F8k40wRxig/1Ef68W778=; b=SzDk9SLN+344ege7stL4DvPWcfsAthRYytE5yy7x+sDV1e6iF0RrcWXqbADXMp6W wZxagB7zFYoFST+HEXPgRT/dKKSPcgWe3BdyDsvWYsdxHcM8QBmQoIQ+a3wvVVJN Cz3AHkQqEPWWteyHyd/zMxWMjHIcWMm7j6MLr+og64w=;
X-AuditID: c1b4fb3a-14fff7000000672c-42-5c6ee8c60925
Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id 28.5D.26412.6C8EE6C5; Thu, 21 Feb 2019 19:07:02 +0100 (CET)
Received: from ESESBMB502.ericsson.se (153.88.183.169) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 21 Feb 2019 19:07:02 +0100
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB502.ericsson.se (153.88.183.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Thu, 21 Feb 2019 19:07:02 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Acq1Cq7PttU1OwLcZIIxs3F8k40wRxig/1Ef68W778=; b=JBDz/GjaHEkprYEtM+bQUmhrRhSC/momDqOchrm6iJ8ttJDfVHCa3r5bzKeIf2U5PdudSoEMXMHrHsNwqkA8WoQvNL97o1JF/oVw7HvEkA4g/2HYxrGoZXuhA2z0hvH+5EmCACU9nLleaGhgSfwZafpxFnST4ZNV1TmFh7OCqAw=
Received: from HE1PR0701MB2905.eurprd07.prod.outlook.com (10.168.98.146) by HE1PR0701MB2684.eurprd07.prod.outlook.com (10.168.183.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.5; Thu, 21 Feb 2019 18:07:00 +0000
Received: from HE1PR0701MB2905.eurprd07.prod.outlook.com ([fe80::1cbb:43e1:d406:1a0a]) by HE1PR0701MB2905.eurprd07.prod.outlook.com ([fe80::1cbb:43e1:d406:1a0a%6]) with mapi id 15.20.1665.006; Thu, 21 Feb 2019 18:06:59 +0000
From: Peter Loborg <peter.loborg@ericsson.com>
To: Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>
CC: RFC Editor <rfc-editor@rfc-editor.org>, Ignas Bagdonas <ibagdona@gmail.com>, NetMod WG <netmod@ietf.org>, Warren Kumari <warren@kumari.net>
Thread-Topic: [netmod] [Editorial Errata Reported] RFC7950 (5642)
Thread-Index: AQHUygQR6wP9nfxQokyPEpmnm5zeAqXqd/AAgAAOdwCAAAHjwA==
Date: Thu, 21 Feb 2019 18:06:59 +0000
Message-ID: <HE1PR0701MB29053FE1EC7A4F199C688050EA7E0@HE1PR0701MB2905.eurprd07.prod.outlook.com>
References: <20190221163919.5196EB81AF4@rfc-editor.org> <20190221.175336.1995849216024607593.mbj@tail-f.com> <CABCOCHQMAq-vzANerP3ehY1y9fiiQZKY_S4dEh0qfhO=7bS8hA@mail.gmail.com>
In-Reply-To: <CABCOCHQMAq-vzANerP3ehY1y9fiiQZKY_S4dEh0qfhO=7bS8hA@mail.gmail.com>
Accept-Language: sv-SE, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [90.231.235.60]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 41fbed53-56d3-46f8-78f2-08d698275fe6
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:HE1PR0701MB2684;
x-ms-traffictypediagnostic: HE1PR0701MB2684:
x-ms-exchange-purlcount: 2
x-microsoft-exchange-diagnostics: 1;HE1PR0701MB2684;23:572/RQKRUhYmw7IExlZ9m1+YAhdOn4g9vJQaFkJHK971LV8UwM2Z8wd1Juv9weUxoiGRseduId9RDb1qzGb5oUgVsA7bC0FeHFUY/czZwJDye3vAb+lX5waxJnkbAPd1iI21VyoK+4DZ2kEF9PvXA9gPJs17oGGuQeFhtPGvzTjRjOzAuATGqGPA/fNtqpkAsefG6xuyasa71lczKkXrjBkKrRJkiS+CgVZTwTcRzcSundgODPXvcr4ShkAy71Z3E6HPMdzi+MoI8Qb3IaLv0nALzVfbRAkdS8OSqj7y5PHcgzYM9JkNMZ4jnOt6a2hFXKjqVlcS5TFGvvHKbW8JMay72GiRvDKjKCPhzTt09FiOFz26CSxldkRnBaR8DKKeYYTB9DHqaGJuG5exaP853nM4OmwUDzV2fatmUq7lqYUFrH5uFBhUluH5obO9I03/GUjrXjAIXZ720Lx0hao8jloc2Z/Mivj4zbJMeqipW5oKVX08joEbHaijEyOVUmjeYRuQDo4VduoSALScVzCS+l0y04zVFBgx7Mcb2sR5MUXnSB9XtXnQ56f9N3BrkDjS5phmS29T9SE2Iw0rDNa5xRdFSYwWES/V/DBVklx/38nrON9giwvTTaMPH3z4uetpIHljvtGfFR30a0e+cDArZvc98E+6n3WBgsorl2ZQ7OalE4sitpW8HaOMoxPvv5irXhC2BrI8z0Syxn8S3tcrIzR+yqKPw8eXTwi1YMQhWT25NOd0Zw+vRndD28RbE969pq6xqnXMwe0roEYzeESzHBEkxUaWQ5n1DDLf5HlTAaoa1rcGY+Q2C6TNaRASNdx4Tt/JrxidT5AfwVA4OOtAoyeyme5bsTDhuSgINi36Ysgh9MEQVzmzmqwusc70wLolnk9ozlN+miKJj3FacsLvx38mOvxB66QJNTI2SlAj4LMdYxwe0WMbawi76410YuUotLjs68da6KjYojNOf8kuyxU52b6vKJoe/BathKe9vRyyMo3QvBo3Jg8YQb6Mt2XMID9D6DRQAAedQCm+9FLnbaPUn7B/KywtJ29OxYuXTrMX0kY7UFiRpLjAhfSrw/7CsxT/s9/RG0JClfV81j1HqpPn5Ouna8Sa2P5GJVmFKRzxiJyeFl3US+6dadyoNH77OSsgjD1orAfc4HnPLxTRlk10hvKpjAyj3l0l5lDIOEoiU3sG54/eY1PeuGJirj0dfgSyRZsLcM46vbe2esTLHOq13pQ6hcmhKqRcijb67p9JAZktbQNTFmqLvSXCc2F85CtQbnnmfzpMxy5wobWuoVQio764GGBwiJDruYSPwhBAF7lRxAYlljUsldzX6bN/GzKvrFkQbpfaPeNXBCe2mg==
x-microsoft-antispam-prvs: <HE1PR0701MB26849D8EB87B93D0BF9E5CABEA7E0@HE1PR0701MB2684.eurprd07.prod.outlook.com>
x-forefront-prvs: 09555FB1AD
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(136003)(376002)(366004)(39860400002)(396003)(189003)(199004)(33656002)(81156014)(97736004)(8936002)(66066001)(7736002)(186003)(476003)(446003)(81166006)(11346002)(105586002)(26005)(6346003)(102836004)(3846002)(790700001)(8676002)(229853002)(106356001)(14444005)(99286004)(6116002)(7696005)(606006)(6436002)(256004)(4326008)(55016002)(5660300002)(68736007)(6306002)(54896002)(9686003)(76176011)(236005)(6506007)(53546011)(74316002)(966005)(2906002)(6246003)(478600001)(486006)(86362001)(44832011)(110136005)(54906003)(25786009)(53936002)(71200400001)(71190400001)(14454004)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0701MB2684; H:HE1PR0701MB2905.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=peter.loborg@ericsson.com;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: BL9l5x8NvIdq9oEsY3eVxppIWDqftMXjxOeXuB30ktdlQIE+UkZIvvhd9crAPtEAmFKiqp+tgZO8Mm6DUh2Xxaes3/cG4Ik2XXzKDRKGi+84lDlMK9Ep+I75StDE1AjdbGnKKjmioEtpiGuCAigM+HLQ5PFNy2cAYT2xtihZHJZhn4YWVU8BxQ/8d78HFfzSpNyQhP7nhTtWpqPA3eHkZ/vxAuG8zylOlgh0p/4sPSa1CkJFMhFvBCN1dpBedbG+Ud8x1tgnuQUH2zJKIc6xFe2Hhj2WNJjLTvpF3BKiQ1vR09vYhnfPjoI8sI2Ct672WVP/70SPch0tjqumWRSu4JoP+5JxA0CoxHy9QRLFNbOzFEuNjVv7c/foLV0MXcocBdLg/4KrT+p//A4KvjGqSk0nRbEFkU08ORL3lkGCbgE=
Content-Type: multipart/alternative; boundary="_000_HE1PR0701MB29053FE1EC7A4F199C688050EA7E0HE1PR0701MB2905_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 41fbed53-56d3-46f8-78f2-08d698275fe6
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2019 18:06:59.7728 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2684
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTYRTGe++9u/dutHpbRgdrgYNCo1la1Igyk6hBBCVJX6NcefF7k3tN 0yjsQyuXaCwIl7LUgVmGFn6kGOUSTQMtlbDEsjRdKpmUqRXWttfA/37nnOc8z3vg5WlVl8yX jzUlC6LJmKBhFUz+4dpUbbPLZNhwz75K199k43TfL1xjdBbLEKezv74g0118Osnqnjd3UaGs vs7Wx+kdjhlK39vzh9NnZDXL9A9/lTD6y7mvmf3sUcW2KCEhNkUQ14dEKmLyBqxUUnY2dWa4 5jebga5forKRnAe8Cd7Yf7hZwatwE4LJyVKaFD8R/H2VJSOFg4KCgjaZZ4XBeTRkT58lg1sU OPvus6QYQlA328B5VCwOhH5nk9uL532wHsoLdns0NLYi+Pbjvjd8KQ6F2ZkRxsM+eCd0ZXWz hMOguuItRdJWw+fKNq+nEkeCPacEkbBqBO19E16RHB+An63tyMMIq+HD1HuvKY2Xw7tB+9yl GBwNHTThZfBlYFZG2A86ukcQYTV02i1zvA/qxysYTxjgXgSF3ePIcw3gdfDiSRjR+MLUwARH NOUqsBb3zJma4drwFY7wSqgZLaKIyMLCRWuxN0GFBSh9kInykNY277E2dwbt3v/lQDbv0Uug NX+QIe0AqKhfT9R+cNPykSPsD5kFhdz8/h3E3UPLJEGSEqODgwMFMfaUJJlNgSYh+RFyf7XG qt9bH6PG4Z1OhHmkWag0dJsMKpkxRUpLdCLgaY2PcvqVu6WMMqalC6L5hHg6QZCcaAXPaJYr /6iWGFQ42pgsxAtCkiD+n1K83DcD8WsmDEkB8Wl7NleNhLvC+hR7D6U1KKjEZ11xx561JrT5 V9wqUo6E1bYuyI3P3Nh7A39Njai8+3K31hV9snaUtmwSlbefR+86PpPREvLhnFw7FpK6yM98 siVcXWaN3e4oTC87pg3aEVG1svH8Ylf/1SMHOw+ox/Lli/P/Fsdtqcz5pGGkGGPQWlqUjP8A 4uhU8mYDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/pRiWsqzo62Nafa9P3CQPMBwh8IE>
X-Mailman-Approved-At: Wed, 27 Feb 2019 08:33:21 -0800
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: Thu, 21 Feb 2019 21:03:22 -0000

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>
Sent: den 21 februari 2019 18:45
To: Martin Bjorklund <mbj@tail-f.com>
Cc: RFC Editor <rfc-editor@rfc-editor.org>; Ignas Bagdonas <ibagdona@gmail.com>; NetMod WG <netmod@ietf.org>; Peter Loborg <peter.loborg@ericsson.com>; Warren Kumari <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
>
> --------------------------------------
> 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