Re: [core] Yangdoctors last call review of draft-ietf-core-yang-cbor-15

Ivaylo Petrov <ivaylo@ackl.io> Mon, 14 June 2021 11:47 UTC

Return-Path: <ivaylo@ackl.io>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 960AD3A2165 for <core@ietfa.amsl.com>; Mon, 14 Jun 2021 04:47:34 -0700 (PDT)
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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ackl-io.20150623.gappssmtp.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 NOWFnbCZYFSP for <core@ietfa.amsl.com>; Mon, 14 Jun 2021 04:47:29 -0700 (PDT)
Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 D74783A2166 for <core@ietf.org>; Mon, 14 Jun 2021 04:47:28 -0700 (PDT)
Received: by mail-wr1-x431.google.com with SMTP id q5so14243676wrm.1 for <core@ietf.org>; Mon, 14 Jun 2021 04:47:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ackl-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kw7oEP5GbeyyUIsXVVo5EfByblXCK76OM3jax7EnYsU=; b=S9E1/0NwXpi3EhYt04xzdPVcnOslmuFfvVHqQ5Ims3UXrQYTSnEcdbURGYy6ANiT7m PbU2h4HuNdIzBZdKJaR5q69alH+zlTNnYgerHbE/2ZVpTk8nbS+4hLsMKE7iKbdQnDwd 4PGnrQRnz3Z0qLLqv8u1+GK/34rt7eyRyc2GAKWwra47irnf7p+nhoxFAwGOrW9TSpzm sX6sUFY83S7uzYi7NDgJQzJlXsakRE1CrjagQpJAva2Jw0BcMOe4BL7SPa5hh7Ea7KyB h7vRxhaAuocuz1MH1vqcktrFF34S/2YeGYsj4vyc+HiqmlpbSx8bTxw7IRq6wTUkp2vO BqOQ==
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=kw7oEP5GbeyyUIsXVVo5EfByblXCK76OM3jax7EnYsU=; b=HMe0pA08CXGxhAYv6WLi+9GXWxIO475wQH7c+82T0jeMlOoZxV33atQEyh/IKCrvDy WxaSbOdZFe5nBTrt0f+5OWxlSTGPBY92U0/l4+R1qky+aSvx0i4M7eugBQzrRCTEmG35 0jxgZI2hzGTA0R2nr983K5FrrDJi0KHTbd4jL6VeDT3291LVgmOXzU4hbuMD7siEAHFv /JC7yUjX1RxNbICry4mgnsusYA2FNVfh8tV4Q/3GTAlI9Y/fhjqT1ubQgQVI+jU581EM sBgzKusgcn3EIIXYNOnO44sBPOuoyOs/EJXYV7IcPZphcVkikv698RBt58a3CJLAJSNK zDHg==
X-Gm-Message-State: AOAM533pz6t2ypKO8c1I0zHaCHNLfQNWuQUOyVEo3ohdWQcBjCdxaxcz j91Yd01SiEUytM9qScW/xjaf70eP6F3ZiRe1exFKPg==
X-Google-Smtp-Source: ABdhPJw3NkIWEpwrzWf4hCpFNR6OMnKQb8ARNIay7OlDR9ZZ4DNkO4PosKKpbv12+EvMLv+yTXmhSR1CEg15MJjYFoI=
X-Received: by 2002:adf:82a3:: with SMTP id 32mr17660913wrc.136.1623671245619; Mon, 14 Jun 2021 04:47:25 -0700 (PDT)
MIME-Version: 1.0
References: <161592338136.13562.2421108714318351834@ietfa.amsl.com>
In-Reply-To: <161592338136.13562.2421108714318351834@ietfa.amsl.com>
From: Ivaylo Petrov <ivaylo@ackl.io>
Date: Mon, 14 Jun 2021 13:46:59 +0200
Message-ID: <CAJFkdRx9D8EcDLty02a60BxLcMF9n9WkcNBXDTDczdFnUULQFA@mail.gmail.com>
To: Joe Clarke <jclarke@cisco.com>
Cc: yang-doctors@ietf.org, draft-ietf-core-yang-cbor.all@ietf.org, Last Call <last-call@ietf.org>, core <core@ietf.org>, ivaylopetrov@google.com
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/3IWa8mmSsGsHNGw15-FXzl7OaGM>
Subject: Re: [core] Yangdoctors last call review of draft-ietf-core-yang-cbor-15
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Jun 2021 11:47:35 -0000

Hello Joe,

Thank you for your review and apologies for the delay! Please find our
answers to your questions below. The diff with -15 is available here
[1]. The updated version is available as txt [2] and as html [3].

Thanks,
Ivaylo

[1]: https://tools.ietf.org/rfcdiff?url1=draft-ietf-core-yang-cbor&url2=http://core-wg.github.io/yang-cbor/draft-ietf-core-yang-cbor-latest.txt
[2]: https://core-wg.github.io/yang-cbor/draft-ietf-core-yang-cbor-latest.txt
[3]:  https://core-wg.github.io/yang-cbor/draft-ietf-core-yang-cbor-latest.html


On Tue, Mar 16, 2021 at 8:37 PM Joe Clarke via Datatracker
<noreply@ietf.org> wrote:
>
> Reviewer: Joe Clarke
> Review result: Almost Ready
>
> I have been asked to review this document on behalf of yang-doctors.  Overall,
> I found the document with its many examples to be quite readable and clear.
> However, I did find a few readable and typo issues and I have a few questions.
> See below.
>
> ===
>
> Abstract:
>
> s/notifications and yang-data/notifications and the yang-data/

[IP]: Fixed.

> ===
>
> Section 2:
>
> Move the definition of YANG Schema iDentifier higher up in the list of
> terminology so it's defined before you use it when discussing deltas.  This
> should likely be first in the list.

[IP]: Fixed.

> ===
>
> Section 3
>
> s/When schema node are serialized/When schema nodes are serialized/

[IP]: Fixed.

> ===
>
> Section 3.3
>
> s/identifiers as string, similar/identifiers as strings, similar/

[IP]: Fixed.

> ===
>
> Section 4.1
>
> In other examples you include the associated type definition inline.  You don't
> do that with inet:domain-name.  In fact, you _do_ include the domain-name
> typedef in Section 4.3, but I think it should move up here as well to aid in
> readability.

[IP]: Added the typedef here as well to make the example
self-contained and simpler for reading.

> ===
>
> Section 4.2.1
>
> s/In the case of an 'notification content'/In the case of a 'notification
> content'/

[IP]: Fixed.

> ===
>
> Section 4.2.2
>
> You duplicate the YANG snippet here that you included in the overarching
> Section 4.2.  I don't think both are needed.  Probably best to drop this here
> since you didn't include it in 4.2.1.

[IP]: Agreed! Fixed.

> ===
>
> Section 4.4
>
> You use the term "list instance" to mean what I think is better stated as "list
> entry".  The latter is clearer with respect to an element within a list vs. the
> instance of a list itself.  You use "list instance" in Section 3 as well (and
> in other places in the document) where I think "list entry" would be clearer.

[IP]: There were places where instances were used as instantiations of
schema nodes and places where instances were used instead of entries.
I tried to clear this out.

> ===
>
> Section 4.4.1
>
> I think documenting the true/false value of the primitives here (noted in the
> CBOR encoding) would aid in clarity.  For example, "primitive(20) [false]".

[IP]: I am not against that, I am only concerned if that would be
readable for others that are used to the diagnostic notation,
otherwise I am fine to apply this change.

> ===
>
> Section 4.5.1
>
> I'm being pedantic here, but ahead of the { 60123 : { ... example, you usually
> state "CBOR diagnostic output".  You don't here, though.  I think you should
> add it.

[IP]: I might be misunderstanding the point, but it appears to me that
there is such a note already, only it unfortunately appeared at the
top of the previous page in the txt version and was quite easy to
miss.

> ===
>
> Section 4.6
>
> Concerning text "anyxml value MAY contain CBOR data items tagged with one of
> the tags listed in Section 9.3, these tags shall be supported.":
>
> This sentence fragment makes no sense.  Did you mean something along the lines
> of: "the tags listed in Section 9.3 SHALL be supported"?

[IP]: I believe I fixed that now.

> ===
>
> Section 5
>
> s/Just like YANG containers, yang-data/Just like YANG containers, the yang-data/

[IP]: Fixed.

> ===
>
> Section 6.7
>
> s/same example yang definition, but this/same example YANG definition, but this/

[IP]: Fixed.

> s/byte string MUST instead by encoded/byte string MUST instead be encoded/

[IP]: Fixed.

> ===
>
> Section 6.13.1
>
> It isn't clear to me how a YANG list with multiple keys or a YANG list with no
> keys would be encoded in CBOR.  I think examples and some clarifying text would
> help.

[IP]: I have modified one of the examples so that it uses two keys. As
for the other point, Is it possible to have a list with no keys being
referenced through an instance-identifier? My understanding is that
this is not possible, but I might be wrong. If it is not possible, we
will only need to clarify this in the text. If it is possible, can we
use the position in the list to identify the element?

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