[core] 答复: [netmod] CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt

"Fengchong (frank)" <frank.fengchong@huawei.com> Thu, 12 January 2023 03:30 UTC

Return-Path: <frank.fengchong@huawei.com>
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 7F325C1907A0; Wed, 11 Jan 2023 19:30:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id se7kQPlQiwGl; Wed, 11 Jan 2023 19:30:28 -0800 (PST)
Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC835C18F7E7; Wed, 11 Jan 2023 19:29:54 -0800 (PST)
Received: from lhrpeml500003.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4NsqhF4FV7z6J7M1; Thu, 12 Jan 2023 11:26:05 +0800 (CST)
Received: from dggpemm100001.china.huawei.com (7.185.36.93) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 12 Jan 2023 03:29:51 +0000
Received: from dggpemm500003.china.huawei.com (7.185.36.56) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 12 Jan 2023 11:29:49 +0800
Received: from dggpemm500003.china.huawei.com ([7.185.36.56]) by dggpemm500003.china.huawei.com ([7.185.36.56]) with mapi id 15.01.2375.034; Thu, 12 Jan 2023 11:29:49 +0800
From: "Fengchong (frank)" <frank.fengchong@huawei.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>, "anima@ietf.org" <anima@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
CC: "core@ietf.org" <core@ietf.org>
Thread-Topic: [netmod] CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt
Thread-Index: AQHZJekyKKG2hLeS1k+pEwg9zgPXja6aH/Sw
Date: Thu, 12 Jan 2023 03:29:49 +0000
Message-ID: <d62956f1f724460bbf12291b92d43f8b@huawei.com>
References: <167345911024.15670.5822349028239537605@ietfa.amsl.com> <18071.1673461082@localhost>
In-Reply-To: <18071.1673461082@localhost>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.136.97.178]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/Jki2Fv5mOeN3JZ9Mq8vgCN0i9BA>
Subject: [core] 答复: [netmod] CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 12 Jan 2023 03:30:32 -0000

Hi Michael,
  You can use augment-structure to extend a yang structure.

-----邮件原件-----
发件人: netmod [mailto:netmod-bounces@ietf.org] 代表 Michael Richardson
发送时间: 2023年1月12日 2:18
收件人: anima@ietf.org; netmod@ietf.org
抄送: core@ietf.org
主题: [netmod] CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt


TL;DR> we can not use augment to get the behaviour that we want of being to
       extend existing YANG modules with new attributes.  We have to revise
       8366 each time we want extend things.  This email details the work to
       make that occur.

internet-drafts@ietf.org wrote:
    > Title           : A Voucher Artifact for Bootstrapping Protocols
    > Authors         : Kent Watsen

    > A diff from the previous version is available at:
    > https://author-tools.ietf.org/iddiff?url2=draft-ietf-anima-rfc8366bis-01

* I have revised the ietf-voucher YANG module to use sx:structure (RFC8971)
  rather than YANG-DATA (RFC8040).  I seem to have missed doing this for
  voucher-request, which I'll fix in the next revision.

* I have worked on pyang so that it will produce SID values for the
  sx:structure extension. The pull request is at:
  https://github.com/mbj4668/pyang/pull/839
  As I suspected, it was about five lines of changes.
  I have some test cases for pyang for this, but I'm struggling to get
  pyang's "make test" to finish period.

* It seems that the assignment of SID values between YANG-DATA and
  sx:structure is consistent, which is really good.

* As discussed at some of the design team meetings, and I think at IETF115, I
  have merged into the rfc8366bis the ietf-voucher-request content from RFC8995.

* yes, there seem to be duplicate SID values for ietf-voucher-request, and
  I'll sort that out, now that I notice I didn't update it to sx:structure.
  That will be -02.

* I will merge in the changes to ietf-voucher and ietf-voucher-request from
  draft-ietf-anima-constrained-voucher.  At which point, the document title
  will *really really* be wrong, since it won't even contain the voucher,
  just constrained-BRSKI.  But, we fixed the title awhile ago.
  I propose to do this in -03, so one can see a clear progression of changes.

* I will merge in the changes from PRM in -04.

* Since we have to revise rfc8366bis whenever we want to extend or amend the
  YANG module, there seems to be no point in having the
  iana-voucher-assertion-type submodule.  I propose to remove that, and just
  leave it all as a flat enumeration.

* I don't think we can attempt to get to Internet Standard with this
  document.  There will be, I think, too many changes which have not gone through
  interoperability tests.  Perhaps in two years, this could occur via IESG Action.

* The document will need a significant re-edit, and I would ask everyone to
  please read it with the view to: what should we omit, or just reference
  RFC8366, and what do we need to revise given the additional pieces that are
  being merged in.

One thought is that we change our mind about making this a Obsoletes, and go back to making this document an Updates:, but I am still stting on the fence for this.






--
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
           Sandelman Software Works Inc, Ottawa and Worldwide