[netmod] Re: YANG module vs YANG data model
Scott Mansfield <scott.mansfield@ericsson.com> Tue, 24 September 2024 11:12 UTC
Return-Path: <scott.mansfield@ericsson.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 A8E4BC14F6FC for <netmod@ietfa.amsl.com>; Tue, 24 Sep 2024 04:12:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.254
X-Spam-Level:
X-Spam-Status: No, score=-2.254 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ericsson.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 ugQeppt83ssc for <netmod@ietfa.amsl.com>; Tue, 24 Sep 2024 04:12:49 -0700 (PDT)
Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2071.outbound.protection.outlook.com [40.107.212.71]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5BFEBC1519AE for <netmod@ietf.org>; Tue, 24 Sep 2024 04:12:49 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZWEWVow5g2xkCoaQyT+xT8+AA0S1xqnjPrWaSUJzp1XNokR+seKuantd4S7S4+iW8FBuEY/jCbIVYUcO1/kvnKfqudKDtENKF0H5Ue2fO9thaiaXpsqZQNf+tr/I0FhW7OG95gpYocX6Mk3VEfPaMKTxEbEqLc/9CQOu0za5YWFOTUTmAey853SXDqeHaq63v40qea4LQhytv5PtxB+nZhsD/woPOpnaeM0Btc16tM083Vv7Ij0pSViwGuzAzvQTwBO4KUj5FNHXVbT9NIgt+Oq2fGIHDVmkJ72b9OJXETUkAZHdoUNwXdsj/fiOPfszzof1AxGETHK4L3V2aExkWw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Wh1Tv954vlokA+puRdFuGgvtt4Q8js3GErAE177mZQs=; b=ndglbFTh/5OgEViepi1E1IrE5/Pq/6c3KPnlqhzTocm47UKFKmE/lz884JEOW/tvQGvbYJZ3i6QR/HpIcyDW22coF3eYZZ62nIQJDsbaAyAL6t8nWMTjV9hAJpNyjBiF1UGP4DVIuWNfDW2oUZEBaJ6J6WW2vZNrdx+MIB7zussqSoM4NSyUM/34R3Zx/sVeTfoLWqw3O/8v5OE3RxcXdTCA/JoFax28N4YKSFOYZy837ba/6gMeL40MTX50gTpbRMy1tAXuLG01EC/eQgoCCV3EjzqPaSdMFc0VHjwWqYCJ6u+nn2oL7394M84r4C4DQUwEo6/RPQDrseKETU+Naw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wh1Tv954vlokA+puRdFuGgvtt4Q8js3GErAE177mZQs=; b=FikF9aeHsVud86u+JQcUMpgA/Fh4JV/t6oT9wkb7t513zZDP58+dY3TNVwVZYEbEd9muhJSQcHDqeu3do7FtLtgJEiYX/4ZI7uxzYeDPbisV+2i4UimMOH67AAmFJrGacfEit+YrIUVUJvR0oygqEM2HCriBaGRaq2xBAXt0DH+0K+UYH+Y80ycptPZnIKO5fy5vwT61BKOtVSqlbD6tZc//k4+7MptRH1uKXqOf5cl3yYUiT4XYkwhpCAbeBCgLDswFmhHDtOA/1zcmUgI79c2RtjcKel9xy8fKZuDoJM0DMSkctgUENKvJ8wev0HtOd3cen55gPRAdDXnBQnHKnw==
Received: from PH0PR15MB4447.namprd15.prod.outlook.com (2603:10b6:510:83::7) by LV2PR15MB5334.namprd15.prod.outlook.com (2603:10b6:408:177::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.26; Tue, 24 Sep 2024 11:12:43 +0000
Received: from PH0PR15MB4447.namprd15.prod.outlook.com ([fe80::bade:3c69:fc1d:2e5a]) by PH0PR15MB4447.namprd15.prod.outlook.com ([fe80::bade:3c69:fc1d:2e5a%5]) with mapi id 15.20.7982.022; Tue, 24 Sep 2024 11:12:43 +0000
From: Scott Mansfield <scott.mansfield@ericsson.com>
To: Ignacio Domínguez <ignacio.dominguezmartinez@telefonica.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] YANG module vs YANG data model
Thread-Index: AQHbDlhGxJXk1x8AlE21bP2S1wtWW7Jmx5wA
Date: Tue, 24 Sep 2024 11:12:43 +0000
Message-ID: <PH0PR15MB4447AEB58728A466DFE77AAA8B682@PH0PR15MB4447.namprd15.prod.outlook.com>
References: <DUZPR06MB8721A35B82F4F575F80AA46195682@DUZPR06MB8721.eurprd06.prod.outlook.com>
In-Reply-To: <DUZPR06MB8721A35B82F4F575F80AA46195682@DUZPR06MB8721.eurprd06.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PH0PR15MB4447:EE_|LV2PR15MB5334:EE_
x-ms-office365-filtering-correlation-id: fa12be92-b4e5-4c68-f82e-08dcdc89cfec
x-ld-processed: 92e84ceb-fbfd-47ab-be52-080c6b87953f,ExtAddr
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|376014|1800799024|366016|38070700018;
x-microsoft-antispam-message-info: Usleb0wcFYl6GYQdMxHraE+2d/RL34WoMC/1wErfQgE++h5gDLh7DqRzfipFky7rTsBu15Z3zBKwxHJ2UvcJTQiJvOsDYSNQyrZ2mwyD7QP+Mujnx5jnLEkwAbw/sJlR6+9lVvFVSaEmH7cJr+3hMcXC2J2NW8RstUA40MbV4e40wuFo0cuEkx+urgcMzRdwlj8FKkF2NMc208TLMNSKa+Zw2Et9ZldPNNHuvLOutyDXkgeCpujOui76Wt5quQLafSmPAthg2VVRHr645PJYWmmywJn/bTXN2Oy31aluNu1FIeowyUrU3ZYw9/4/mliGpQF+OncRHO10dsScFWyFGKTshG1j9TloAlko+KxbHlyu8YBehAJvge60xHIvEX1r/CJJlKNKg1zmSLAuOwcsCs0Uu72SmkMizJntP67tZIEnK66YGCYDsp0/fgqNmReD/UG6IiXzcp0FNEAZB8u0lExaALN7jQghgfIsdiJyFqtxIU26pT/7JW1kkSEl460ZqB0tmJWLaSgW48orioe/W8vfCjQ+HD0d/sbCdQuF0CYStLc5Fx+KhQvOf4XChgWNn9W+dieTGQvtJVbgtC7vh1IGiWeoO8xeY/90CKUhZ0Y/jb5xJNAws8SnA4lg5Bi0sbiZyRZYnZdCJJZltqvjichPe6fN8EooPaxyasMwjGHupftctNt9WknZZN+3Nzb6IycPF7NzOEBlaWrU6JeWjhEkVXAm2MeRETJwseH42pXr1oQszVCU2iVkRN+F1v2rExDcY3xv2Ekjhj5Yow3arjnqMmrxITMAaOiYfi9aacysqrLChWTLL6tdwssqs9IJ10+YD8rEHMy1smV57ntjBWfOVRNqN0ZOSuJI0i27c9RoGNttu0E64Qo2eQNl9PhxhXi0L4P/nt+kKVXeVNTc8mD8BgGCE658jl440hpbu3zGui/2SuTnk3CytimUJs7TL9UiXnUZMPAIfG1ki1KrBaNPuAqzeAFD5y4DMQJryl/gzLJ5oTbrycCisOLIIeGMS3BLdUFsU8i5aGJio5/IdS4FLdiwEiQFVzQIXyZf1QFnomrBhpzEcQrUl0dFneJ27Bt7HEwUw2j4ESxQdLRUMcXQiG0+N3k6sDfmJypQbK/mwGQ+x098IuFNt31NvoUM8CnlvrzqrC8iWC2+OUHoSFkMe/rcpO/ntG1qPdy0cabnmkPE+fnUEEr9cDJ1imrZZprFJRnLE7kPBRYIFxvcUhwwhWpixAeE/GISfH1ANJ8Cp6PkKu5wLNrfdL3uA3mkpTFDf5dilH7F7LZKW5peMBdl0Ci/ONKQFmWUl6qGh5bI/8HjAD3kVdm7M2l4Z0eBkkpepdtFC49qjmNw8McIgQ==
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR15MB4447.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(38070700018);DIR:OUT;SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: nSHafNd9aE09yP9XTLbjdib/mUJsf0syrA+Psk1AUUYRlzl9FMCOS7H+XkCoGJura+UypfUh8iZb7ADYWtTBdSFuPcPXYkgNU9Bcp/RO2hVYMiX4ayRbV1IovXL95mxMqQ/BmJK0uZuFK1ctcaLBW0y77he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gTFqxAABr2y2vHbifU90jJN9rtUE8DC/JalDeWtSqCgFY+yZmH3x1B/GQm9YmCvbfdjSAcSBr8PMWRawWAqWThQSLy/DxdJheXbTqu1fC0sog9KlL/NPT3Qi1ocFtj2ukMPDBnQ3r+oFt1RmNRZuhqtHaR0yHlGJi7HKBVkRkvHBfKe0UenY39C8IPwu1jxMjCk/XJbUO4B+vlepGDb+576hZ3hMm73AA6+gdAzyy4G7QTdQS7OLp31j34iIBojXC6lSVzX7tDtBrE4NOL27lQ1z4HC7cli5QPbjJx1075y57sm7V+NSkV0Hco1xCqm/v2Y9u8E3KfC/L1W7zep+6JbGhbWk0ahUYaVzv96bSUHOQ5LVUuWp7kH/LNr1rixpgQyP9xGkg==
Content-Type: multipart/alternative; boundary="_000_PH0PR15MB4447AEB58728A466DFE77AAA8B682PH0PR15MB4447namp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH0PR15MB4447.namprd15.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: fa12be92-b4e5-4c68-f82e-08dcdc89cfec
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2024 11:12:43.6652 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: paUvBK5g5TIXEBcP6I8tK7Lky4ajGTrZ9nlDmoOxlzXm5iaqYzJDbzlCDQP9b5vXLBMok8CNCDUCjYZUw6wAB6AtF9xIW+znyUNhUVzvQjg=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR15MB5334
Message-ID-Hash: GO2GNABSQWIFKNHBJ5DBXHZRSUVSJ3JF
X-Message-ID-Hash: GO2GNABSQWIFKNHBJ5DBXHZRSUVSJ3JF
X-MailFrom: scott.mansfield@ericsson.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netmod.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netmod] Re: YANG module vs YANG data model
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/wdH9fQuiRredzScAj6jT9W87VS0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Owner: <mailto:netmod-owner@ietf.org>
List-Post: <mailto:netmod@ietf.org>
List-Subscribe: <mailto:netmod-join@ietf.org>
List-Unsubscribe: <mailto:netmod-leave@ietf.org>
Here is the guidance I have been using in the IEEE 802 YANG coordination group. It may not be perfect, but it makes a distinction between model and module in what I feel is consistent. Research based on IETF documents… • YANG Data Model * Not explicitly defined. Data model is defined in the terminology section of IETF RFC 7950 as: “data model: A data model describes how data is represented and accessed.” • YANG Module * In IETF RFC 7950: * Section 3: * module: A YANG module defines hierarchies of schema nodes. With its definitions and the definitions it imports or includes from elsewhere, a module is self-contained and “compilable”. * Section 4.1: * “YANG structures data models into modules and submodules.” * Section 4.2.1: * “YANG data models are defined in modules. A module contains a collection of related definitions.” * Section 5.2: “YANG modules and submodules are typically stored in files, one “module” or “submodule” statement per file.” IEEE 802 YANG coordination group definitions: * YANG model * One or more YANG modules used to configure and monitor the managed element or system. * YANG module * The description of the data model used to configure and monitor the managed element or system. A YANG module defines a hierarchy of nodes that can be used for NETCONF-based (see IETF RFC 7803) and RESTCONF-based (see IETF RFC 8040) operations. * Schema tree * The definition hierarchy specified within a module. [IETF RFC 7950] * Schema * A collection of schema trees with a common root. [IETF RFC 8528] Hope this helps. -scott. From: IGNACIO DOMINGUEZ MARTINEZ-CASANUEVA <ignacio.dominguezmartinez@telefonica.com> Sent: Tuesday, September 24, 2024 4:59 AM To: netmod@ietf.org Subject: [netmod] YANG module vs YANG data model Dear NETMOD WG, Since I started working with YANG, I have felt the impression that we tend to use the terms “module” and “model” indistinctly, leading to misunderstandings. According to RFC7950: “a data model describes how data is represented and accessed.” And later we can find: “YANG structures data models into modules and submodules.” And: “YANG data models are defined in modules. A module contains a collection of related definitions.” The identification and versioning of YANG modules and submodules is clear, and in fact, keeps evolving as we have seen in the YANG Semantic Versioning<https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-semver/> discussions. However, when it comes to YANG data models, to the best of my knowledge, there are no means for identifying them. In my opinion, this is a limitation that is hindering the cataloguing and access to YANG data. From the standpoint of a data consumer, what you care about is the data model, that is, the compiled hierarchy or collection of imported, deviation, and augmentation modules. Let’s put an example with two different data models: 1. Module A (name: module-A) --> augmented by Module B (name:module-B) 2. Module A (name: module-A) --> augmented by Module C (name:module-C) How do we refer to the first data model? Should we name it “module-A”, like the parent or root module? Please, also note here that concepts like “parent module” or “root module” have not been formally defined in the scope of YANG data modelling. How about the second data model in the example? We cannot name it “module-A” as we would have a naming conflict with the first data model. I have seen other activities within the IETF that have come across this issue. For instance, An Architecture for YANG-Push to Message Broker Integration<https://datatracker.ietf.org/doc/draft-ietf-nmop-yang-message-broker-integration/00/> with the implementation of the YANG Schema Registry. In this case, the YANG data models (not the modules), and therefore, the YANG schemas, need to be uniquely identified in the registry. However, the algorithm used for generating the schema IDs is still unclear. I think the YANG Packages<https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-packages/> draft aimed at solving this, though I’m missing why the document was abandoned. I would kindly appreciate I someone could shed some light. Many thanks! Best regards, Nacho. ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is confidential and privileged information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição
- [netmod] YANG module vs YANG data model IGNACIO DOMINGUEZ MARTINEZ-CASANUEVA
- [netmod] Re: YANG module vs YANG data model Scott Mansfield
- [netmod] Re: YANG module vs YANG data model mohamed.boucadair
- [netmod] Re: YANG module vs YANG data model Joe Clarke (jclarke)