Re: [netmod] IANA registries and YANG

Kent Watsen <kent+ietf@watsen.net> Wed, 18 December 2019 13:42 UTC

Return-Path: <0100016f193e9208-9c64b808-74b8-4863-b1ff-d197deb455f3-000000@amazonses.watsen.net>
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 41F7212004C for <netmod@ietfa.amsl.com>; Wed, 18 Dec 2019 05:42:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.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 M2uSSUnMbXvs for <netmod@ietfa.amsl.com>; Wed, 18 Dec 2019 05:42:10 -0800 (PST)
Received: from a8-33.smtp-out.amazonses.com (a8-33.smtp-out.amazonses.com [54.240.8.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 931D612003E for <netmod@ietf.org>; Wed, 18 Dec 2019 05:42:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1576676529; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=aAyQdNYbhJAVfuPpl92SYwg5+/aIv7Dr7/nVYK67QFQ=; b=F3Vp3wvXQTOwOGNhev75sBI0fyHFsKRqB3nCgAvZxPV4MAfRFJnbuP8M8u/d5Xox ZRlUf2YOem0/mBmxkpB1LZOuB/BSMO0ExkVt2q2cTeh3195wTg0SO6OErHEydczlb56 T7OUDgCFAA3gJ7Y6bQPPvnUoGr1LlHA9TrSJnqGY=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100016f193e9208-9c64b808-74b8-4863-b1ff-d197deb455f3-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_238C7A9F-7ACB-495A-AC91-81EE4C794506"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Wed, 18 Dec 2019 13:42:09 +0000
In-Reply-To: <87eex2hz0p.fsf@nic.cz>
Cc: "netmod@ietf.org" <netmod@ietf.org>
To: Ladislav Lhotka <lhotka@nic.cz>
References: <87pnhonpor.fsf@nic.cz> <87eex2hz0p.fsf@nic.cz>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2019.12.18-54.240.8.33
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/feGp5T1JOYJLoXkNJ3QcNBAqgyU>
Subject: Re: [netmod] IANA registries and YANG
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: Wed, 18 Dec 2019 13:42:13 -0000

Maybe this approach can be for the algorithms in the "iana-*algs.yang" modules defined in the crypto-types draft.   The '*' expands to symmetric, asymmetric, and hash.   The problem is that I'm unsure if there is exists 1-1 registries.  But, to the extent there are registries, this approach seems easiest for IANA.

Kent // contributor



> On Dec 18, 2019, at 2:29 AM, Ladislav Lhotka <lhotka@nic.cz> wrote:
> 
> Ladislav Lhotka <lhotka@nic.cz> writes:
> 
>> Hi,
>> 
>> I would like to discuss the issue of developing YANG modules that mirror IANA registries. The main objection, raised in DNSOP WG in relation to draft-lhotka-dnsop-iana-class-type-yang-02, was that the RFC containing the initial revision of the module doesn't get updated along with the IANA registry (IANA is expected to keep the module in sync without updating the RFC). As a result implementors can use the obsolete snapshot from the RFC.
>> 
>> I am aware of three solution proposals:
>> 
>> 1. use some kind of template instead of a YANG module
> 
> Followup: template turned out to be the right buzzword! Instead of the initial revision of a YANG module, it is possible to include an XSLT stylesheet and instruct IANA to use it for generating the initial revision of the module directly from the XML version of the registry. I used this approach in
> 
> https://tools.ietf.org/html/draft-ietf-dnsop-iana-class-type-yang-00
> 
> Could this be a recommended way for converting other IANA registries?
> 
> Lada
> 
>> 
>> 2. include only two or three entries of the registry as examples so
>>   that it is clear that it is not the complete list
>> 
>> 3. keep the module in the document during the whole I-D stage but
>>   instruct the RFC Editor to remove it just before it becomes RFC.
>> 
>> I am personally in favour of #3. According to Randy Presuhn, who proposed it, this procedure was used during the preparation of BCP 47. It would require some extra coordination with with IANA but, apart from that, it should IMO work well and avoid the problem mentioned above.
>> 
>> Thanks, Lada
>> 
>> -- 
>> Ladislav Lhotka 
>> Head, CZ.NIC Labs
>> PGP Key ID: 0xB8F92B08A9F76C67
>> 
>> _______________________________________________
>> netmod mailing list
>> netmod@ietf.org
>> https://www.ietf.org/mailman/listinfo/netmod
> 
> -- 
> Ladislav Lhotka 
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod