Re: [netmod] Question about when to create IANA-maintained YANG modules

tom petch <ietfc@btconnect.com> Tue, 28 June 2022 19:32 UTC

Return-Path: <ietfc@btconnect.com>
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 C6A98C14F74E; Tue, 28 Jun 2022 12:32:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level:
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.com
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 dfeOhy3dBCtJ; Tue, 28 Jun 2022 12:32:18 -0700 (PDT)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2126.outbound.protection.outlook.com [40.107.22.126]) (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 5BBDFC14F72A; Tue, 28 Jun 2022 12:32:17 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P0QawjIAC+cbthGaH8HTFEBtTpnnpI2j7uleeLyw1AE04KqVu3SRDKyIZB3y96tDo8Vqs/U+rR2M7cYN4FHrB9V7XexOSVM2QXhU6xt5yK/32HZVYhsEXTkF8WRfNSyV//XPL+5z94qf8MmdWLFd1I7txvW1e2o1/lLy7u2b1oi9Zw00jadDjsHwBJm60VUmISLQ6RhATzyfkZe2t4t1PpEvWyCyU7MwROoynZjIJFVQfYka24NZl4pIFAZY67U78gRePZf6FrL2bLFHMAyQfuFyc5J4jQA9Urj1LaASnFyCq6ewQAl2tzZXWLVEvblELTww/RiryR06EuOxrxZuIA==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xM5SToKG6AwGuEFN9UwfvWrxrODVHjwd5uwLllxE2Rw=; b=HGWIfb12re9qm/s12qaL4pSsuGTElOuFyZoh2TeBYiFBUiSkXJAGXsMNxI7/x4tKI8Bx0O9ABbV+T9G6kk7ymGawtFaGlF27QYGSpYi0vugWYmnHOknZHg+HdYkazp6CAjQIoBrI1AVFtKxa26oz6Ub1XvCfNr/M9whQGsuvmfBu1imP092FWyqpPuJdDMwZkzJf1JJsZf2qrDKKKt2ilfkHv0opOmd7hxMqvoEh9IWHrJoH0JDm4spLuNv8fLKEPYeBaG1JkJutMQDErrG4Fy1S2+8Fa+8L7w8Uw7SE75vAKQ6Zzape2ZwAuaUtwbk3fYqbgGWRQKBpOkQDGkLzFQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xM5SToKG6AwGuEFN9UwfvWrxrODVHjwd5uwLllxE2Rw=; b=WKf25v9ym98VWApP/T4pYsDMBd29n9HOFLNMeeI5BM74RWXeonr5heB5tESxhXx2HHwcTY2YLzn4z6XThRyTNdadiu/TcVDRLTES5baWfRsUqJ2r/iJThbddmHSv6nDwigEo9VFWFjWHlLONX2QhDRItxECz4IfzeynN6LsvVJA=
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11) by DB6PR0701MB3048.eurprd07.prod.outlook.com (2603:10a6:4:72::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14; Tue, 28 Jun 2022 19:32:14 +0000
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::9005:7594:94ee:30a9]) by AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::9005:7594:94ee:30a9%7]) with mapi id 15.20.5395.014; Tue, 28 Jun 2022 19:32:14 +0000
From: tom petch <ietfc@btconnect.com>
To: Jensen Zhang <jingxuan.n.zhang@gmail.com>, "netmod@ietf.org" <netmod@ietf.org>
CC: IETF ALTO <alto@ietf.org>
Thread-Topic: [netmod] Question about when to create IANA-maintained YANG modules
Thread-Index: AQHYiodqK6xbUYSTa0q6z92NMOA4061lL74L
Date: Tue, 28 Jun 2022 19:32:14 +0000
Message-ID: <AM7PR07MB6248FCE2BDB2710B69926EE5A0B89@AM7PR07MB6248.eurprd07.prod.outlook.com>
References: <CAAbpuyo6=H1-b_TnMgKZ7P_AkvAuyncmUeuDn6HWpE3SiB-xiw@mail.gmail.com>
In-Reply-To: <CAAbpuyo6=H1-b_TnMgKZ7P_AkvAuyncmUeuDn6HWpE3SiB-xiw@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=btconnect.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b236bf2a-ec5c-4c9e-d50f-08da593ce769
x-ms-traffictypediagnostic: DB6PR0701MB3048:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: yrLGJlw8juJ/IhJvbIIikENIiE9BrgWLttcBT+TZbwZTiL0/0w/JYVoNuoC3Il+rKCem4WyA4jWD/JfUCwdHuzQI/ZT2wWWPYhZN3EdzdSpTkD1oA5Uwwaep0Jrh/q53UoPxDhOqy8lGzQJE4iY2tgwGdTi+WhOIFn+cOdiz5svMl+MDniwKiL+XPkletQZjjL9P6KXlkGHhGkAeKmk9YjqZqJhZTZIQGXa7/CYRNupGR0oKIcPp8ZO/wxF91F8YEsdgAFCQQtiyoLltc4HnjGleVcXjUwtP8h1QM3uMUUpcPITcTYnL8GuYmj/0mMEGLYNhLl4e/M9edBYpppqK8dZO0hAsVXHVdLRrpgZTD38CXvb6Rjg1ZIwiy6M8edMNmC/39qatVxhvsJ2hDzbkKNhW9z5Scp1fB+wbG+LSk6xQOitP08yX6PcSpqIxM0OWS1Fzxm9CnujyE9C260FS5wLmYiDAt8BVdqtvoAQ0ktXDbRF/z+pnhDiL/4uolkEjFjk2N4gO/X2HW4tJ6DJQvZ1NlloNkrHPspeRBvv5vpTwZ0GzmI/HYV9UpJ2cYK0uQJ7Ytn8PghtAxuEdx3f4bCErw8CeKQM2nguAGgI76yWciSCyW/spuwDS61r3cglQ8QTDd1ajkjPAb24EZz/6rTyyx7qVS2Q6M8uFMbU9cm3xVb8/tMlECRsO8gg6FUiNjWRkjSYRlyiOVjLSfQut6jntuaGxLrUU3sGyaUsnllkn1dac+hSBYzD7/afotBI3I9ExgSJ5tygoPKc8SX9vfOwcam7PrAOdF8GO3dYNRscsaX9NhrR2dC/pz/Ne2DP7g7CsiE91W89ii6mGOWavNGDiuiEJu6Yqjgs9XbBI7bBDva1mhPhySIKSEc55hQ4lOmDhBvWz7GRjHjGLk+4xxg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR07MB6248.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(396003)(136003)(366004)(346002)(376002)(82960400001)(91956017)(8936002)(9686003)(478600001)(966005)(7696005)(5660300002)(6506007)(71200400001)(33656002)(26005)(76116006)(52536014)(2906002)(38070700005)(86362001)(8676002)(4326008)(122000001)(64756008)(66946007)(66556008)(66446008)(41300700001)(66476007)(110136005)(316002)(186003)(38100700002)(55016003)(83380400001)(21314003); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: M6u8iT6724wkmuxoKMirt18Q/+8jEHO1b5UyT+KGmQOAULoUOg6oSCCIYlAnyfMZyBKV4/VoLfuEZS+jHXdkoQDrWbudbzS6iC9cqfy3HSX3O6QXzCraO5NG0ctYicSdqwFGKhBM+iVA4M5ssoBtL9HA+tyqOqfJMZECgLcsFMsYCMhH7ntCKs6OwgM2xdgU8+nf54E6reEcoUsmuWiYIOoMl/HQ+24VbY2uZwdEyzRQGEIQPPrVJu/Ho0qSG+urgQjrI0I/b8G+NJslmsXiqSwTx0vUnIcwPiXZDJQ5xoKXViehD4QTBt85oJ0KQuDubLLe/EXu8b3cMiVQBPTcVk/cYNqyJB+BIPvViCRBe5fSPbEpu2kNl/A4AJsIbdyeA/nWghHvKv8B+dC2nqE8fX5AUreX3jsBcMJczQOalKKhMQH6dbAdlZShiODg14MV3g0MJ9rdQ6eyIxSKzlUNzmuGiwb8857uqaTA36CyWIEckMBiM85h6z3VthUuRr/lwJlW0WCqisfZBLxZB70nl5QoOLjLJ24kPbhI0LXQFakwr0d2FVdEVxQ8x9BtfDYvcOjTnDRl3d1TlA/fVZIxjzkXhsv+tVoNtsRRvbYt55ViAqL3n4GdgBiLBp/JGjx0fZqVV56T6Ks/1Bx9+gYqRrQbx7JwinEWXbrxuzFPPYONobk+vXVFZAKivPJbe5YVGnRM18VDD5pI7qMiRobgfBiQQGluKk02RBdxbsHNs+aCaVSwmboE6qxVVBzDNc+2HNjPZj+hdgTwqpF79mDsCct+aFZT8tnVHe5f2Lhk3p1T5CuNpDwIxhVFPW1bDuGpoH/jWbO0F0ZmIsz6v82PU4ZHW4pep9+wWUiIf3IWHvjOb6afB7sfh8ld912NDRswI3sE9UvBA5Ny3QfOsurN8jM1aXNnR7AB234ueLS99EuSuYV1P2AUvRu0fFMI21+8WGvS2jkoOZijy1DKuZQMxkdYe9yfbm0kpGD89Oma5h9cqmggM3vGp3t3Uq8/dj5W/mi+vJCJA3GZFuSOQsvVXvw25j7l1QgKGRP7u443NYLMucLvhkFsb56bJfaZdRTTnYy3jfhJNf9cwm2Q40Gj3qZETRMsA9cj8pPSQfrUhmH9OzBgpcvARa61syLBQkShcpmYfEVwOLtMCMneDFodwBuMcqA+0kYzSU5zI2yKj1RfeScaaqyk9NdJEUtmnr+D/3A/o80ictS12//bjdnBST4SCW6MSRnrQx6hwuIJGFQthZoDwnZiFis7Ka9Eyu9TR+gYShKiVRNEDSAumbComtmBGGomOsfbXxp/3GJjX1OmZryfsP8FNHWSkWX+YAjRfdT+0Vc8uGq15EZ2iUhxBwcWy+wxjTf6Jp8istsbxNlv3U58PwIT2B4W8eRX/5FDsG7C1BQv7XuqfPp6+VqExqbhx8P4BwGMz1UA3KlXtxhMSuzpYFt6kkgOIjxLroiVG3lfJDi2GynSKKnk9DGXSB3vaZbodyVus3NtN8wBNCrmh9LKovVjKgovJ1clVvDYVfe4AAaD4lzVBlM4+kIcYOTIu+2fbQm+NqWo6MN+Dn7CeG51sUAb/wEPIRFY2iRb
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR07MB6248.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: b236bf2a-ec5c-4c9e-d50f-08da593ce769
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jun 2022 19:32:14.1416 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: qmUcyywOow9MdFP34UXDwhbE3yVAHJFTsfAGL2rXX40WSitmNXmSWqDjLcryM4H64QSAw/I2dBTckJzx1QsZag==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB3048
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/BtFGH5RC5UsR3rW_z0G1Mbjucpk>
Subject: Re: [netmod] Question about when to create IANA-maintained YANG modules
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 28 Jun 2022 19:32:19 -0000

From: netmod <netmod-bounces@ietf.org> on behalf of Jensen Zhang <jingxuan.n.zhang@gmail.com>
Sent: 28 June 2022 01:38

Hi all,

We are working on an I-D [1] that requires enumeration typedefs for some IANA registries. 

<tp>
I do not understand that statement.  An IANA registry is a namespace with values, numeric or sometimes character string, listing possible values and giving references for the definition of the values and the rules for the maintenance of that namespace.  Some WG put their namespaces into IANA, others do not - if only one WG is involved, especially if there is only one base document involved, then arguably there are costs and no value in involving IANA.

If a registry is set up with IANA, then I cannot see a registry requiring 'enumeration typedefs',  enumeration is a data modelling concept, a list of possible values with names (simplifying).  I cannot see a registry requiring enumerations.

Historically, the IETF used SMI which is mostly numeric but with type of enumeration there was an associated text string.  YANG has a type enumeration which uses text string and any associated number is documentation only.  Some users of YANG do not seem to understand this and think that name and number are bound together - they are not.  This causes problems when the protocol is numeric, as most are,   You then need an authoritative mapping between name and number which YANG does not provide.

Having IANA maintain a YANG module requires IANA to have the YANG skills to perform this.  On more than one occasion recently, they seem to have lacked those skills (good as they are at maintaining registries in the face of unclear, confused, contradictory information in RFC). 

The registry policy is a significant factor - if that is RFC required, then there seems little  point asking IANA to do anything.  It is only with such as  Expert Review that IANA's involvement may be beneficial, but the experts need the expertise, not just in the protocol but in YANG.

Finally, some WG choose identity, others enumeration in their modelling.  One key difference is that with YANG identity, you in a sense give up change control - anyone else can do anything - so a registry of YANG identity seems like an oxymoron.

I see your statement as an incomplete solution to some problem.

What is the problem?

Tom Petch


We notice that some modules [2] self-contain identities and typedefs for IANA registries, but some other modules [3] create separated `iana-xxx-types.yang` modules.

We wonder what is the best practice on when to create IANA-maintained YANG modules. Could anyone give us any guidance?

[1] https://github.com/ietf-wg-alto/draft-ietf-alto-oam-yang/issues/1
[2] https://github.com/YangModels/yang/blob/main/experimental/ietf-extracted-YANG-modules/ietf-ospf-srv6%402018-10-11.yang
[3] https://github.com/YangModels/yang/blob/main/standard/ietf/RFC/iana-routing-types%402018-10-29.yang

Thanks,
Jensen