Re: [yang-doctors] [Anima] Yangdoctors early review of draft-ietf-anima-brski-async-enroll-03

Reshad Rahman <reshad@yahoo.com> Sun, 22 August 2021 15:18 UTC

Return-Path: <reshad@yahoo.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 366C33A082B for <yang-doctors@ietfa.amsl.com>; Sun, 22 Aug 2021 08:18:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.318
X-Spam-Level:
X-Spam-Status: No, score=-1.318 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.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 GsEBxdfugZi8 for <yang-doctors@ietfa.amsl.com>; Sun, 22 Aug 2021 08:18:14 -0700 (PDT)
Received: from sonic317-26.consmr.mail.bf2.yahoo.com (sonic317-26.consmr.mail.bf2.yahoo.com [74.6.129.81]) (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 3C6063A0825 for <yang-doctors@ietf.org>; Sun, 22 Aug 2021 08:18:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629645492; bh=tZGQzfbMrh2L0NfVC2MS/SfxF0odEQ05DgV85D7YjWs=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=RlDp762uLrkfECM5QP/eQB9BW8FbIWS20pFmFQJp2bjFtzlkeOdozGBfYY944FqgcJHfY9zMCuT0vRUzA0LZRF+AQz+v7ZTZXB/M4wVRidT8Jaqfz/+nLSljiY6ap2FFIKIMbhq5UWBmpTcD8ASDnTRdEXhUXc2FR8UXQZNXgfIJUp5k5n6J3xNI6vs64zKQ2Lx48yFlnztyEYmTk3AsLMs1abJV4Rn47928L+8QcRd2M5cUFXJnX/gG5r95oPJNVLftZJFxbM08uvHwFaHD/THtqK2aPELwyBzKMZsGp6fWqtcDzAWB6p6DhNCUXyi2QWdfxTGW72kHMCahzGr8eg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629645492; bh=zpzU2rw3JoGaDHUWh7iL2R+PeTEwCC74Pap51LHPUbU=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=A2/9MS8JQfKcx2vzyMKZpfSooTMFQX0fVAjf7QNXxEbVOY3uYUx/8ZN8n6NiC/JlvhuGAtk73Kq4xN96J9BGrDLFpHa17B7WwJEALR0fBPivi3QZS7HnV9C+dhO6mq6od/OGG0zgz3Gcs/DxxZ8D0wmQtEIaxWITEuKh1E6oj4Hk/4HFtquzL0vG/f5H+1Z2CPlgu7KzwXo64+SHPQ4e2TOepk8DsVGB77PyT4Wr7n7B/83QSld/Ndhu6eOtxaywL05+FezZC+ibgfSett4IcPRcFYfF/jPp9J0aEVmduiLmH4lGr2ONNdTDHS3jsz4gWU10SIm5OivkE0ZRV0OVMg==
X-YMail-OSG: pNS3BvQVM1mIL6T2tTzKKsP4j7_YoZGxrPYSQBTDIF3vT2AH68D05aaMXKtiAQv Sy0Vn2DuKGui.GtxuARP7i_TNxrkQxPrh.6.casOoJV9YJAhUQLF0oc5YMgIVg.m1ppx64_ns3f7 Oyn5.TNqCIc7DScp9TOSPoJUHP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wyInLY_0nJ7JnhThtc3fejMDHeI wwtcyLaJl8MgxuOpFgqLd26fUqEFoRDCMsAZiNNgfJnzJ_Ts6lWpG0qOrWpS.5k3IoQ503kKptlT J78ZsIU84BywrYiqR2pTYT59n1no-
X-Sonic-MF: <reshad@yahoo.com>
Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Sun, 22 Aug 2021 15:18:12 +0000
Date: Sun, 22 Aug 2021 15:18:08 +0000
From: Reshad Rahman <reshad@yahoo.com>
Reply-To: Reshad Rahman <reshad@yahoo.com>
To: "anima@ietf.org" <anima@ietf.org>, Michael Richardson <mcr+ietf@sandelman.ca>
Cc: "Rob Wilton (rwilton)" <rwilton@cisco.com>, YANG Doctors <yang-doctors@ietf.org>
Message-ID: <1809429735.637981.1629645488633@mail.yahoo.com>
In-Reply-To: <3baf5be3-5ee6-24b4-f080-c713644aaa85@sandelman.ca>
References: <162904097601.26892.13230706221222180793@ietfa.amsl.com> <3baf5be3-5ee6-24b4-f080-c713644aaa85@sandelman.ca>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_637980_1127578475.1629645488631"
X-Mailer: WebService/1.1.18850 YMailNorrin
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/RjyvdKDiR3B4q027lB5H0Xq8kyU>
Subject: Re: [yang-doctors] [Anima] Yangdoctors early review of draft-ietf-anima-brski-async-enroll-03
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Aug 2021 15:18:21 -0000

 On Thursday, August 19, 2021, 04:43:33 PM EDT, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
 
 
 On 2021-08-15 11:22 a.m., Reshad Rahman via Datatracker wrote:
> It was correctly pointed out that the enumeration for "leaf assertion" in
> RFC8366 can not be augmented. If my understanding is correct, there is a
> suggestion to do a IANA-maintained module for the assertion and republish a new
> YANG module revision when a new assertion is added. However, I don't believe
> the "assertion values" are actually IANA-maintained. 

The RFC8366bis would create the IANA Registry.

<RR> If you want a central location for these values, then doing IANA maintained values is the way to go. But I am not familiar with the details of the process, so I don't know of the extra cost, if any, of doing it that way. e..g I assume when a new value is needed in the future, we'll need a bis of 8366bis on top of the new document which uses that value?Adding Rob to shed some light on this.
 >So I don't think that
> doing a IANA-maintained module is good in this case (disclaimer: I won't
> pretend to be an expert on IANA-maintained modules). As comparision point, the
> IANA BFD module at
> https://datatracker.ietf.org/doc/html/draft-ietf-bfd-yang-17#section-2.12 is
> for BFD registries maintained by IANA
> (https://datatracker.ietf.org/doc/html/rfc5880#section-8).

Thank you, I did need another example.

> Since 8366bis is being worked on, can the enum be changed to an identity? That
> way, when a new assertion is needed, a new identity is added. Identities would
> also enable to support "multiple inheritance" as was asked here:
> https://mailarchive.ietf.org/arch/msg/netmod/dNGvcvckwuS_pBmkVg_Te8bedZs/. For
> an example, see https://datatracker.ietf.org/doc/html/rfc7950#section-7.18.3

I don't know if I can use an identity.
<RR> I believe you can use an identity. But if you want a central location for all 'values', identity is not the way to go. If you're ok with having the uses distributed in various documents, identity will work.RFC6020 section 6.2, I think?<RR> No that's identifiers. 
I'm not sure that I understand the 7950 example.<RR> Does this help: https://datatracker.ietf.org/doc/html/rfc7950#section-7.18As opposed to having enum E with e.g. values E1 and E2, you have an identity I (no "base") and then new identities I1 and I2 with I as base. For example:  identity path-type {
    description
      "Base identity for BFD path type. The path type indicates
       the type of path on which BFD is running.";
  }
  identity path-ip-sh {
    base path-type;
    description "BFD on IP single hop.";
    reference
      "RFC 5881: Bidirectional Forwarding Detection (BFD)
       for IPv4 and IPv6 (Single Hop).";
  }
  identity path-ip-mh {
    base path-type;
    description "BFD on IP multihop paths.";
    reference
      "RFC 5883: Bidirectional Forwarding Detection (BFD) for
       Multihop Paths.";
  }

> Other comments:
> - rc:yang-data (RFC8040) is used. While this seems to be fine, if the
> voucher-request-async-artifact template needs to be extended in the future, my
> understanding is that it is not possible with yang-data. However, you could use

Uhm, but we use rc:yang-data in RFC8366, and we extend it in RFC8995 to 
make voucher-request.  And we take that, and we extend it in 
anima-constrained-voucher.

So I'm confused.
Is that we are doing this a bug?<RR> No. When 8366 was written, afaik the work on structure had just started. So it made sense that you used yang-data.

> "structure" and (eventually) "augment-structure" from RFC8791 for this. -

I have read 8791 now.
It seems fine.  I don't see why we would or wouldn't do RFC8366bis as a 
structure.  I would appreciate a deeper understanding of what it does 
better.<RR> structure allows for extensions and doesn't need to be at top-level (which is the case for yang-data). Maybe you don't need those 2 enhancements.

BTW: we plan to rename all of our extensions (still in ID stage) to be 
ietf-voucher-foo, rather than ietf-foo-voucher, and I wondered if there 
was any reason why this was a bad idea.  It seems like a good idea from 
a collection/sorting point of view for the humans involved.<RR> Sounds good.