Re: [netmod] [core] πŸ”” WG Last Call of CORECONF drafts: draft-ietf-core-yang-cbor-12, -sid-11, -comi-09, -yang-library-01 / -yang-cbor-12 review

Esko Dijk <esko.dijk@iotconsultancy.nl> Mon, 30 March 2020 12:24 UTC

Return-Path: <esko.dijk@iotconsultancy.nl>
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 740ED3A1504; Mon, 30 Mar 2020 05:24:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.011
X-Spam-Level:
X-Spam-Status: No, score=0.011 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=iotconsultancynl.onmicrosoft.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 kd13_WsVm2L6; Mon, 30 Mar 2020 05:24:28 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130095.outbound.protection.outlook.com [40.107.13.95]) (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 9D85B3A1502; Mon, 30 Mar 2020 05:24:26 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=db30oOjYpX3ndMOLbgUbHcYgDt5SvNnNMYIRnbHKosHqBXtmukp2BjJ/W6qlJvxaGJO8sqcAhQ+SqCTVOc6UOXqv4T5SYAprRPzj9oFFln1eYj+xqGPrlfqOpJ+IwBN5b8gtV+QCsfJY1vbyziY0jQp8ZxzkuGRLt56X59HcbxiVVdi6Nv8SV70GQsMdaVi2vOwaX9EinXWA4+eVXqvv7Y6udifhDICoHtbzb7EUifQDNwG6VnxNlaKOHoR3Rm8cnpMXnZpgHt2Vc6TOZIL40VW39iy61BjxagxbEeOlGoOYkYCdqzxmQodlmRHFjX2zDVGqHPkTkup0PArxkeNZSg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+66+R94gMWVW/6aqsOB52kiwpRmZdGDWMuIyT8bYr+s=; b=c+dIDC4ZN2yxE703aDjkwrBU58d23PXS+MhmuQ5m6MITwL2DI++AR7F0okB1t5eqCrlPKWBXdSuHXFPo9gCsmCRgiqgU9jklJ8i/iKZwNzmBV92s9cCCDKd/YlMviJ+YwntH7WAVg8gH4WJe1lT2TR6JawuwKtrYHgIzgDwmP059dzQZcf5P4HtTJinuVn/qR/y4H9rrIjYSnk76tTK1dzvtWDXKnfhKT2P/8654d7KZlFkQbT2noaXqLkxLf/iRNUOn+1k/OlBXNMb3+T92ODS4D58ZOzzsjQlAL+mn/FrhYh2s2H05VwXeydXsQTBplSowLu930RIsv1Tz1yP4UA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=iotconsultancy.nl; dmarc=pass action=none header.from=iotconsultancy.nl; dkim=pass header.d=iotconsultancy.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancynl.onmicrosoft.com; s=selector2-iotconsultancynl-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+66+R94gMWVW/6aqsOB52kiwpRmZdGDWMuIyT8bYr+s=; b=dzc51D4Kgag2HWp60UGF6d7y1hIl8KL+U12NeJHhaA8AVtKSdIUXz8XWWCT38FZUIzMKPZy5IRVzdHOYhyK882z9mPwqvkVRRZ1oeWsmsVo2wq6Jes5t2EIOXA0W3aLnAmt6Ab03wsPCggY+Y3Ky5WGGnTcA5ubCMh2hZVHKVhE=
Received: from AM5P190MB0275.EURP190.PROD.OUTLOOK.COM (10.161.62.28) by AM5P190MB0339.EURP190.PROD.OUTLOOK.COM (10.161.89.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Mon, 30 Mar 2020 12:24:23 +0000
Received: from AM5P190MB0275.EURP190.PROD.OUTLOOK.COM ([fe80::8c96:a66b:e170:bf8f]) by AM5P190MB0275.EURP190.PROD.OUTLOOK.COM ([fe80::8c96:a66b:e170:bf8f%3]) with mapi id 15.20.2856.019; Mon, 30 Mar 2020 12:24:23 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: "core@ietf.org WG" <core@ietf.org>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [core] πŸ”” WG Last Call of CORECONF drafts: draft-ietf-core-yang-cbor-12, -sid-11, -comi-09, -yang-library-01 / -yang-cbor-12 review
Thread-Index: AdYGhnx6ThxgcFwgSzqMbMeNnwyrmQ==
Date: Mon, 30 Mar 2020 12:24:22 +0000
Message-ID: <AM5P190MB0275E7C8F67A739DD27B3B10FDCB0@AM5P190MB0275.EURP190.PROD.OUTLOOK.COM>
Accept-Language: en-US, nl-NL
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=esko.dijk@iotconsultancy.nl;
x-originating-ip: [85.147.167.236]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 36ebd501-058a-4aa1-f74b-08d7d4a54786
x-ms-traffictypediagnostic: AM5P190MB0339:
x-microsoft-antispam-prvs: <AM5P190MB03395667AB032BB3EF2D794BFDCB0@AM5P190MB0339.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0358535363
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM5P190MB0275.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(366004)(136003)(396003)(376002)(346002)(39830400003)(9686003)(26005)(5660300002)(186003)(44832011)(6916009)(81166006)(81156014)(8936002)(2906002)(71200400001)(86362001)(55016002)(33656002)(4326008)(450100002)(6506007)(52536014)(53546011)(966005)(7696005)(66476007)(316002)(66946007)(76116006)(508600001)(66556008)(64756008)(66446008); DIR:OUT; SFP:1102;
received-spf: None (protection.outlook.com: iotconsultancy.nl does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: +sZbTi5NKFSnLqSZI7Yf0fnXld4MhlpmqiS4fUgZIrnNUzs2UvvcjXYbXRVw+DMOQ5zp8fmlc7s2HReM6QILbnqekC5xWctuKUqQsNz37yAWVJlVlp7hnSq6UBgzUnX6ZZBfe8p9uDdqddotor/w02qGKe+/ARSmwpWGgZFupaCd44rx3G4qkSkOH5Zh5RtJl/eBpHtmnmHXILAdhXHcrE5TL/JRme3PeVBKD7yTt+LF9Y5GY67oWgrgTlkAKlAuhIl5mSiBVzL6A304ZQ+WdOXYM0PyAOusJc5W1QFflEsoExM9LgEQcOxgDyqs4CTJBwVmweQI4Gc1YtrNbSR/Xmhb9MYr+TI/emY4Vm7b4A0y3Pis506WCbe0BSRIZEZBFtTrbS553UYW/BuZu3fnHbn57i8BDT267DY3JhIMeYQ3TOAn5lq4QpAqTD5F9sY2uVAlhQKPpXPg04wC9kwSMzvHx4CsLN7B7rP8WbycKy0PLQDmSLcgjZjIiV2lcLpaL7S0TwK86fw/dVB/wsj/kQ==
x-ms-exchange-antispam-messagedata: 4YxE25Y33h3eLh3NivyiRsC7Tk3JBrl28Ov1za9ilPw8DjQYRsAyP1Y69zpZmMULJfUbO7TBfUa9epbcG5ZJmbSFYkASmowMZKTcIfYY13+cfjvHIrt/mXlEP9MCz5SKBjlas2blSOZw6jYmKLWbsw==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: iotconsultancy.nl
X-MS-Exchange-CrossTenant-Network-Message-Id: 36ebd501-058a-4aa1-f74b-08d7d4a54786
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2020 12:24:22.9497 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 58bbf628-15d2-46bc-820b-863b6774d44b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 0+qeo1x62gw2H0erdB9VBIW3neu4EWM3ezO+UV6ivePmjqmjQoJOpHjrMnzMI0NevI+CDwp7u02A0m3Z8W4WSr4JlFqhojb3rPX7imGOL3k=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5P190MB0339
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/HnigjyVbAv9eONXSDDJ9pEvAlP8>
Subject: Re: [netmod] [core] πŸ”” WG Last Call of CORECONF drafts: draft-ietf-core-yang-cbor-12, -sid-11, -comi-09, -yang-library-01 / -yang-cbor-12 review
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: Mon, 30 Mar 2020 12:24:32 -0000

Hello CoRE,

I did a review of draft-ietf-core-yang-cbor-12 and some comments are below. I do support the publication of this document but feel a few updates of minor items are still needed! See the items below:

Section 3: "This specification supports two type of CBOR keys" -> two types of CBOR keys

Section 3: This root CBOR map is provided only as a typical usage example and is
   not part of the present encoding rules.  Only the value within this CBOR map is compulsory.
-> Not fully clear to me, how can an example be compulsory? Other values within the CBOR map could also be used, right? Also it wasn't fully clear to me how the data structure would otherwise be encoded if not with a root CBOR map. Maybe good to give an example of how it would otherwise be encoded if not with a root CBOR map!

Section 3.1: Table 1 uses both uppercase and lowercase in the last column for the CBOR encoding. Best practice is to use either uppercase or lowercase for hexadecimal, but not mixed I think.

Section 4.5.2: "example-port: example-port-fault" :
-> space after ':' is to be removed. At least I think a space isn't allowed there.

Section 3.3 / 4.5.1 "as follow"
-> as follows

Section 4.6: "data items tagged with one of the tag listed"
-> the tags listed

Section 4.6: the "anyxml bar" definition should have "# SID 60000" comment, like for the other YANG definitions that have a "# SID ....." comment .

Section 5.1: "YANG template encoded using SIDs are carried in "
-> YANG templates ...

Section 5.2 similar sentence as 5.1 above

Section 6.6 example:
  type union {
     type int32;
     type enumeration {
       enum "unbounded";
     }
   }

unclear why "unbounded" is within quotes? The CBOR encoding of this example encodes the word 'unbounded' without the quotes, which would look like:
   type enumeration {
       enum unbounded;
     }
An open question to me is whether RFC 7950 section 9.12.4 has the word unbounded in quotes on purpose, or by mistake. None of the other examples of enum statements use the quotes! Why would this example suddenly use the quotes? In any case if quotes are used then per RFC 7950 definitions the quotes must also be encoded as part of the yang-string.

Section 6.6: Tag 44 use - in section 8.1, the table states that the tag must mark a data item of type unsigned integer. Which is not the case here, it marks a string.

Section 6.7: similar to section 6.6, the tag 43 mentions data item "byte string" in Section 8.1 while in section 6.7 it is followed by a text string.
Just to be clear: if a 'bits' type is encoded, it looks like the tag 43 is only used if followed by a text string as in 43("under-repair critical") ? Or should a tag 43 also be used in case a CBOR byte string follows? 
E.g. 43(h'06') instead of h'06' ? That doesn't seem to be the intention in the current text.

Section 8.1: could indicate here what the column 'Data Item' means. E.g. make clear that the CBOR data item following the tag listed in the first column cell must be of one of the CBOR data types listed in the second column cell.

Best regards
Esko


IoTconsultancy.nl  |  Email/Skype: esko.dijk@iotconsultancy.nl 


-----Original Message-----
From: core <core-bounces@ietf.org> On Behalf Of Carsten Bormann
Sent: Monday, March 9, 2020 14:05
To: core <core@ietf.org>
Cc: netmod@ietf.org
Subject: [core] πŸ”” WG Last Call of CORECONF drafts: draft-ietf-core-yang-cbor-12, -sid-11, -comi-09, -yang-library-01

It took us a long time to get the four CORECONF drafts in sync, 
but now we are ready for WGLC.

This starts a working group last call for
β€” draft-ietf-core-yang-cbor-12
β€” draft-ietf-core-sid-11
β€” draft-ietf-core-comi-09
β€” draft-ietf-core-yang-library-01

ending on

	24:00 UTC on Tuesday, March 31, 2020.

(This includes some extra time for the IETF week and for cross-WG
coordination.)

This WGLC is copied to the netmod WG mailing list; please do have a look 
at these drafts as they are slated to become a part of the greater
YANG/NETCONF/RESTCONF family.  We intend the discussion to be on the
CoRE mailing list, but if you find a fundamental issue with YANG or 
RESTCONF, feel free to discuss that on netmod instead.

Please start a new email thread for each major issue that will need
discussion and make sure the subject line includes the draft name and
some sort of name for the issue.  (Minor issues such as typos can also
be sent to the authors.)

If you read the draft and think it looks fine, please send a one line 
email to the list or to the chairs letting us know that so we can get 
a feel of how broad the review has been.

(To reviewers and authors:)  If you are aware of any patent claims that
might apply to systems that implement these drafts, please review BCP 78
and BCP 79 and make any appropriate IPR declaration before the last-call
ends. If you are not sure whether you need to make a declaration or not, 
please talk to the chairs and we will help.

Grüße, Carsten

_______________________________________________
core mailing list
core@ietf.org
https://www.ietf.org/mailman/listinfo/core