Re: [netconf] New draft: Augmentiton Addition into the IETF-YANG-Library

IGNACIO DOMINGUEZ MARTINEZ-CASANUEVA <ignacio.dominguezmartinez@telefonica.com> Fri, 10 November 2023 10:25 UTC

Return-Path: <ignacio.dominguezmartinez@telefonica.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 24279C17C534 for <netconf@ietfa.amsl.com>; Fri, 10 Nov 2023 02:25:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=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 (1024-bit key) header.d=telefonica.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 tkjI6gGbYFpQ for <netconf@ietfa.amsl.com>; Fri, 10 Nov 2023 02:25:17 -0800 (PST)
Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2129.outbound.protection.outlook.com [40.107.105.129]) (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 2829FC17C526 for <netconf@ietf.org>; Fri, 10 Nov 2023 02:25:16 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QHPK/jKuFR93IhyDXm8sKDtFnAH3zIunnn1qqqz1ri9BdAtI6w/Ay1s2s78D5oqVefC8H3F1fowaDtS7R4vzGQuVuWIGcKBHKtYTNLeR67E6eV+p/jK18qXH4dsITPgvZhTsGzEkEAk9iCoRma+5oCkOO63zVgl4RF6X1FC+RJxpMYe/h0VKEaZE1u9Nb9ZzOlidHeY8OJCTfKeX8XqoqnfAW5w5MCmYImYgTQqCZN8ABCxCYQBNAfza+oWFZmyVkOpTaWiK8cn4sKnD3Ed5sRgW37SwVavHR1T2cNRxTd/b83Oi5mAMFYrrUeZ6loSgAuoS1R1T2Z4enGcfAaKx5Q==
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=nXfg78eOOzwkuohRZCpObBk6VLXLKIuyJ9ULn7NlrJc=; b=am9OQ21A5KBSJO9+3N7UMypm5B+yo2kvStuWYVlDS48AHpRGjfYxwh1pTMM8gIrsstT9Ab3Ocw6A500+QCrIp34LkUpV7ogryot7epYXPb/KhkDR+xPwOwaqyAml8YB39IlMWrHPsx/ojQXz30aoxhRMeI+ZI39tZXU8Guym3jdj15+fLbS5PO/ew590xOSexaPMXDij6ndI5qe/+c98Z6ni/ffP78jJWBbKdku8Knl34aG1RzUr/OBIj/KGamx2Gcw2walQMSMiHWMJcomtx1kQ69CdPPBJ9o/Hh237IJ7ZHvjU1Qq2iryPSdo/V2KiQfPVVpCQ6mvTr1V19oui4g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=telefonica.com; dmarc=pass action=none header.from=telefonica.com; dkim=pass header.d=telefonica.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telefonica.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nXfg78eOOzwkuohRZCpObBk6VLXLKIuyJ9ULn7NlrJc=; b=IsjMldGX2iwM6IeJUU2CNqKFpb8xZH3ZckU4DGt2pynppFqwQewoDXmMWSfBJArgW701rRJshTFXbjCqUoW+mjlxE4/XALQ7OPccrI2/mdcXziv2FXnvk0t7GreB5/O++nUR7Y6EeyPBZRNkXCdKaKq4Cvw5WukXMOpVlAWy3cg=
Received: from AM8PR06MB7764.eurprd06.prod.outlook.com (2603:10a6:20b:363::18) by AM8PR06MB7139.eurprd06.prod.outlook.com (2603:10a6:20b:1d8::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29; Fri, 10 Nov 2023 10:25:13 +0000
Received: from AM8PR06MB7764.eurprd06.prod.outlook.com ([fe80::ca07:1040:fbc5:d14a]) by AM8PR06MB7764.eurprd06.prod.outlook.com ([fe80::ca07:1040:fbc5:d14a%7]) with mapi id 15.20.6954.029; Fri, 10 Nov 2023 10:25:13 +0000
From: IGNACIO DOMINGUEZ MARTINEZ-CASANUEVA <ignacio.dominguezmartinez@telefonica.com>
To: "Jan Lindblad (jlindbla)" <jlindbla=40cisco.com@dmarc.ietf.org>, Benoit Claise <benoit.claise=40huawei.com@dmarc.ietf.org>
CC: "netconf@ietf.org" <netconf@ietf.org>, Zhuoyao LIN <zephyre888@gmail.com>
Thread-Topic: [netconf] New draft: Augmentiton Addition into the IETF-YANG-Library
Thread-Index: AQHaEP1sxznRkBvWMUOiEcTSz5a4hLByPyaAgAEaxtI=
Date: Fri, 10 Nov 2023 10:24:46 +0000
Message-ID: <AM8PR06MB7764109BF52BA8A03637618095AEA@AM8PR06MB7764.eurprd06.prod.outlook.com>
References: <169926957480.41732.13691497170003209371@ietfa.amsl.com> <abb8d6c9-71d5-75b2-9988-b1b04ba158a3@huawei.com> <8EB468CE-61A5-49BA-8E2A-D647804A4E97@cisco.com>
In-Reply-To: <8EB468CE-61A5-49BA-8E2A-D647804A4E97@cisco.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=telefonica.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AM8PR06MB7764:EE_|AM8PR06MB7139:EE_
x-ms-office365-filtering-correlation-id: 77093bc0-9086-4ce9-e598-08dbe1d75345
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: u2F2mAU8XVOG2x7V/nrFOXccMjsH8qFRVu7QsCm9Yn2iB+MHTp2GAcGCr8zPF24qXgEUuD1wgdiSoLaQ4P5pMeFB7+xXukphZkBkhV2HTxKGegCI0Z6l2cvsmtn9PF5WScoIARORUI5RCzvcq3ti+R8Q8/WWAcafiKGg2xPMqnpOTlitXFeJFivgSa7wuqu6Kc80bGWaBaOsoqB65yyfNe4Ul2jil2APw0fM4rMbz7G2ZVwuPVlKGlxBphI3hXYYLKip0ap6HpHUV7zceg5cFlrDoGle696LKPI4YOMkOOKwRWyY0ZtrMGgMrnxvjF95Xi3x39T2A1NA7Na5iFEdJ4pIwuQuJIJXTCzlD4tbAN2LWJUtnhI9ddq+0VRXgGlK2lAZcaX5nR0e6S3olNp55+wAJMHrI+xo2B0wv8MuKjtZzQRS/HQSWKK6tJihzXNtuqeMgO6ZyhpBtHawpwzGgpUykRVQtoUSWSZ1TeywbeMruRK+tnsQUfAZUebji3mQPPfezSDZdqWFQbmKS2SmPctKOEmonQdIwTrXsn2IihNCttzOUnsjfXyQQ/aE/oUNzE/5cC/wGb4AKVlDAtT+JIPoHmDH5Ld9HACmFYzo5NPirewmYLlZzKONltEw7gYf32NEP2Dmkr27RaVpJXKBpi7h9KMagDi6CLsZq09iCcJ9ugb5wSVjC75663wlYLfhDBNpKn7Sjv436Ieme3RCSQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR06MB7764.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(346002)(136003)(376002)(366004)(39860400002)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(66899024)(55016003)(478600001)(38070700009)(82960400001)(54906003)(53546011)(33656002)(86362001)(966005)(166002)(6666004)(83380400001)(122000001)(38100700002)(41300700001)(76116006)(66446008)(71200400001)(66556008)(110136005)(64756008)(6506007)(66574015)(9686003)(66476007)(316002)(52536014)(7696005)(2906002)(8676002)(4326008)(5660300002)(66946007)(8936002)(26005)(9010500006)(15398625002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: vMNkncgXpos7uM6kx4CCmfVtrim+9ouvMC9gHMFfu53gljLIVridp1Jhehg/P8Lo6q30mK/iR0NSsGVxNtdwZ9J8az8CT4BWMvf4WeRPvH/MCUkOO5dVdmtvQFvbGMhr3hr034EK+C6b/sVYzh33vvg7WV+7zox9uJvog9eHic7DCDCZcgewUHkqpUJm1kG6puNvEZ2Yi3KWRjw33CWZhWlFGIytX84xppynVkrr6YH9SQ3gorue5GQfsYP1SPgbEj6EGkxhSg55f640tFRyCuH5lknxkmAXEECKu8ly7czWorcFqZVKzoZJo6TZOV9Hqh7NF8M95hMtWk7RPRHFUgEcwWYOdWu2NiuY9TiULLG5lUtqCK4eZzXDdLaqxismI7+tngpiKWCGthiIkapgmYPdmXc9C4/KpZkgZJcNwbZoy2xJ3d5V4eL1nKe/8mYkdKqEA/0EWim31zM8DLR8twMnXmaswFzQ3xBlk/HF6ZVjRZYOqk9xGV4QuTqYDP6NxyEkC4Ccyg/ydCREGk5anHH0tWkFjeWwPRcGrkngyOMoAsdY+vZt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: multipart/alternative; boundary="_000_AM8PR06MB7764109BF52BA8A03637618095AEAAM8PR06MB7764eurp_"
MIME-Version: 1.0
X-OriginatorOrg: telefonica.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM8PR06MB7764.eurprd06.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 77093bc0-9086-4ce9-e598-08dbe1d75345
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2023 10:25:13.4072 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9744600e-3e04-492e-baa1-25ec245c6f10
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: GDg1erF4JzDPSJmg3NdEI62scK8cO423qJFajH8Z9o8ck+u2uVKxeJdAdYOP/jXoZ5avjFyza28415cb601A2fw3dK0HaMda++blDk3HZRDnvQ9f8wDeKtZtnS+OYvRdGbYRdNalcdckiVHlAgzkyw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR06MB7139
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/IeKZHtG1qUZLpFWB5QqlNiKi44w>
Subject: Re: [netconf] New draft: Augmentiton Addition into the IETF-YANG-Library
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Nov 2023 10:25:22 -0000

Hi Jan, all,

I think this extension of YANG Library will be very helpful. The current version of YANG Library does not provide the information required by an application to discover all the dependencies that compose a YANG data model.

Let’s think of a very simple use case where an application wants to manage the interfaces of a device. Based on the current YANG Library, the application will see that there is an “ietf-interfaces” module and another “ietf-ip” module that augments the former, however, this dependency information is missing. Currently, the application needs to additionally parse these YANG modules to identify the augmentation dependency. We could include this simple use case to better illustrate the need for the extension.

My understanding of this draft is to extend YANG Library to include “augmentations” following the same approach as done for “deviations”.

I agree with Jan in renaming the dependency to “augmented-by”, which conveys more precise semantics.

Additionally, if it makes sense (YANG-wise), I would propose changing the leafref to “path "../../module/name".

Many thanks!

Best regards,
Nacho.

From: netconf <netconf-bounces@ietf.org> on behalf of Jan Lindblad (jlindbla) <jlindbla=40cisco.com@dmarc.ietf.org>
Date: Thursday, 9 November 2023 at 18:17
To: Benoit Claise <benoit.claise=40huawei.com@dmarc.ietf.org>
Cc: netconf@ietf.org <netconf@ietf.org>, Zhuoyao LIN <zephyre888@gmail.com>
Subject: Re: [netconf] New draft: Augmentiton Addition into the IETF-YANG-Library
Benoît, WG,

I listened to the presentation in the NETCONF WG, and now I have also read this draft. I think it's ok, even if it does not really provide clients with any new information that they can't access today. Since it is optional for servers to implement, I don't think there are any problems standardizing a module like this. Servers that often participate in use cases where clients find this shortcut to information useful may well choose to implement the augmentation.

If I may be very technical for a moment, I might add that the current definition of the augmentation leaf-list is a bit odd. It is a leafref referring to /yanglib:yang-library/yanglib:module-set/yanglib:module/yanglib:name. In this path there are two keys (module-set/name and module-set/module/name). That means you need two leafrefs to uniquely identify the module, one for each key leaf in the path. Instad of using a leaf-list of leafrefs here, I'd suggest modeling this as a traditional list with two leafref keys to avoid the problem. Other solutions are also possible. Perhaps naming this addition "augmented-by" would also make the contents clearer.

Best Regards,
/jan



On 6 Nov 2023, at 23:02, Benoit Claise <benoit.claise=40huawei.com@dmarc.ietf.org> wrote:

Dear all,

Let me introduce this draft
This document augments the ietf-yang-library in [RFC8525] to provide
the augmentation list. It facilitates the process of obtaining the
entire dependencies of YANG model, by directly querying the server
YANG module.
Feedback on this brand new draft (done during the hackathon) is welcome;

Regards, Zhuoyao & Benoit

-------- Forwarded Message --------

A new version of Internet-Draft
draft-lincla-netconf-yang-library-augmentation-00.txt has been successfully
submitted by Benoit Claise and posted to the
IETF repository.

Name: draft-lincla-netconf-yang-library-augmentation
Revision: 00
Title: Augmentaiton Addition into the IETF-YANG-Library
Date: 2023-11-03
Group: Individual Submission
Pages: 13
URL: https://www.ietf.org/archive/id/draft-lincla-netconf-yang-library-augmentation-00.txt
Status: https://datatracker.ietf.org/doc/draft-lincla-netconf-yang-library-augmentation/
HTMLized: https://datatracker.ietf.org/doc/html/draft-lincla-netconf-yang-library-augmentation


Abstract:

This document augments the ietf-yang-library in [RFC8525] to provide
the augmentation list. It facilitates the process of obtaining the
entire dependencies of YANG model, by directly querying the server
YANG module.

Discussion Venues

This note is to be removed before publishing as an RFC.

Source for this draft and an issue tracker can be found at
https://github.com/Zephyre777/draft-lincla-netconf-yang-library-
augmentation.



The IETF Secretariat


_______________________________________________
netconf mailing list
netconf@ietf.org
https://www.ietf.org/mailman/listinfo/netconf


________________________________

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
________________________________

Le informamos de que el responsable del tratamiento de sus datos es la entidad del Grupo Telefónica vinculada al remitente, con la finalidad de mantener el contacto profesional y gestionar la relación establecida con el destinatario o con la entidad a la que está vinculado. Puede contactar con el responsable del tratamiento y ejercitar sus derechos escribiendo a privacidad.web@telefonica.com<mailto:privacidad.web@telefonica.com>. Puede consultar información adicional sobre el tratamiento de sus datos en nuestra Política de Privacidad<https://www.telefonica.com/es/telefonica-politica-de-privacidad-de-terceros/>.

We inform you that the data controller is the Telefónica Group entity linked to the sender, for the purpose of maintaining professional contact and managing the relationship established with the recipient or with the entity to which it is linked. You may contact the data controller and exercise your rights by writing to privacidad.web@telefonica.com<mailto:privacidad.web@telefonica.com>. You may consult additional information on the processing of your data in our Privacy Policy<https://www.telefonica.com/en/wp-content/uploads/sites/5/2022/12/Telefonica-Third-data-subjects-Privacy-Policy.pdf>.

Informamos que o responsável pelo tratamento dos seus dados é a entidade do Grupo Telefónica vinculada ao remetente, a fim de manter o contato professional e administrar a relação estabelecida com o destinatário ou com a entidade à qual esteja vinculado. Você pode entrar em contato com o responsável do tratamento de dados e exercer os seus direitos escrevendo a privacidad.web@telefonica.com<mailto:privacidad.web@telefonica.com>. Você pode consultar informação adicional sobre o tratamento do seus dados na nossa Política de Privacidade<https://www.telefonica.com/es/politica-de-privacidade-de-terceiros/>.