Re: [netmod] Definitions of YANG schema and Packages (in packages draft) - Issue #74

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Fri, 07 January 2022 22:37 UTC

Return-Path: <jason.sterne@nokia.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 8A02A3A0CCD for <netmod@ietfa.amsl.com>; Fri, 7 Jan 2022 14:37:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.464
X-Spam-Level:
X-Spam-Status: No, score=-2.464 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.576, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NONE=0.001, T_KAM_HTML_FONT_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 5B9qUtPNy1fl for <netmod@ietfa.amsl.com>; Fri, 7 Jan 2022 14:37:28 -0800 (PST)
Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2094.outbound.protection.outlook.com [40.107.237.94]) (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 93FB53A0CCA for <netmod@ietf.org>; Fri, 7 Jan 2022 14:37:28 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WUmHMSnZaUkbpaWkJVD/eh7DUkzUfY6RKWk8xW5O660hzacu6VJnFBg3XFGUrDUQBHZCD7pN77TL+Svx/7zN7uRXjg47bu+QN+ZN5zeC2QtfPttJBAKo4wkagYNa6K/LqJLh3Wsnb4oVz2MK3Q/uEW/7ErKDVwhN4p07Rb0gufSTmzOQLW0Hp7bCBKkTATk4a1LEcjtxZfWgE/c823gE24xR4b7v2OGgsa9KnzVXctKbOUM2yZa4Wl8LDKk0rxXT0gXDkdciSBnB0vMoLX9yb51I5qtUfe9LBJZHgSptfcTW1qDrI+ez36XtCd+f9in5qhI6Z+1nxPl5axVtVikr7w==
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=qWFEcfGz8qwvg4jECcjqNaNekTe1H1m3IyEGYnfheWA=; b=TkcGZNmwsCTsu/R2cxTNp29brOzoYB4iw8CDDAZivlyHXKejKrqVR2v1ZfM1P8fDpP1wiCMCQE1+72TFLNTb2d1QUuw3uCNNsg7R/OvINNG+SUs2dZMppeU5WdFEIo5ciPnFKjrjcfYfIZoj87HrcKD1QjO5iLU7SH+0Q+MfkAFKcOpHHiPYst01xT4uoHq71VsgxQdHFWm32sK0cg/408KhQiQ7KMCfCl18rTqWcwDHCHpixTpUk9Xnb2oaKWyb9JuqnY8ggOwpKUjR/Bxf1urWoA9ciua7yRmk7Xd//CqQV32EAgmpOBpWoaexCgAq+raOXN9Ns7+nbrP6YM7LiA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qWFEcfGz8qwvg4jECcjqNaNekTe1H1m3IyEGYnfheWA=; b=SHTga7T325xiDVbAFzbbzERCRziy3nJtuWRXjM1XZlChdSmpSOtxYaEOETfR01bFJMCyGtQ6xQDGVgzRtvSMBsHcY64zNG/V/4tAeK0l1ECApkMHNkd00FrWmSh8LgNiJSvDBtArb152NJfYzb4lmAapdoWY03e9Rn3RJgJenqU=
Received: from DM6PR08MB5084.namprd08.prod.outlook.com (2603:10b6:5:41::29) by DM6PR08MB5804.namprd08.prod.outlook.com (2603:10b6:5:153::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.9; Fri, 7 Jan 2022 22:37:26 +0000
Received: from DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::d937:3404:2dfc:eb33]) by DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::d937:3404:2dfc:eb33%4]) with mapi id 15.20.4867.011; Fri, 7 Jan 2022 22:37:26 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Definitions of YANG schema and Packages (in packages draft) - Issue #74
Thread-Index: AdgDQ/x3HOXbFQUgRey//oYRnKBy0gABhJwAADLor2A=
Date: Fri, 07 Jan 2022 22:37:26 +0000
Message-ID: <DM6PR08MB5084C4BED9EBE5A46E2C91AC9B4D9@DM6PR08MB5084.namprd08.prod.outlook.com>
References: <DM6PR08MB50849FCEE5CB4692647FEA919B4C9@DM6PR08MB5084.namprd08.prod.outlook.com> <20220106220922.jcujhjnfzydyb54c@anna>
In-Reply-To: <20220106220922.jcujhjnfzydyb54c@anna>
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=nokia.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: cbae39ba-3ddb-4fb4-0d58-08d9d22e47bb
x-ms-traffictypediagnostic: DM6PR08MB5804:EE_
x-microsoft-antispam-prvs: <DM6PR08MB58049967BAC5F57D824200529B4D9@DM6PR08MB5804.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: yQXM6tDrSV1aMX7MaJZNaR7FjZnEmG3KiiD41XjK6xklcSoE7daqA+6Njm6VZjnojeFYzWfBmCjaELNM9TM65h4hCFu1DUrNERiG8UVnb77WaIzwQIJhopXstzwfDh4efWOcJmO94u3dr0vWHT30SWS0VZiDtNHO/vTEV+TrFq12E8WW4nbLrkrRS+JMDltRFYuShtv8y3oxULyE+a8SSJRB0Yv4HW3Jh8un2sQgN6V/XfYMQjXrMTlIW/MHp4E7cAsP6uIcwak3SsGhB6rShwW8gr7QkvHDEyu4MHltpoHTJljy3fNZril8pVfXNr1f8zIdT7O5JUFJflpwFS7ghdbkyAnzuXIX9jTlsZDpX3l2elLUnzbcDKbegBL/i5JsfPjM8CJGmj+dXJygCDq3ZQM5ffxHn9WnJ5UUrhj0NzscUIoRT/xrFQUQUsJqoVmfrEmr2gpGLIOM9+bdJrohjin7dYORGWqhyXKhnheDzJdX/WpDCFxNvSt0xylkWQve1nKBiOqKYKCTqURLqemFV845cfX+YJl5pZXstXPj6JV+/BjQQaQ0VGpP5FXMR+g83V+iYnuB/SP0bwjwv+ZYvWtm37jfnr628k+i09zs3ndih1y1EpH9TNSIqOw1ScB9jKEaXRAj2ZHAZjoWlqGTT5+BorHxTBr2nHkcdRcOze1hRUd7DsMfq4kTGsof0MrNl2gt9SVdktQstUJGcAoSeK4sBlZXDZ2AIaZqTUoCQ/HzOahMoS8WYsKRoPK+foAIyYNJxRM3riA/e5Pi/e9567CmKbmqlxKb4TzN06Tsj1RcoaztJdBi4SSPQPTCYXcj
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR08MB5084.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(186003)(6916009)(316002)(6506007)(122000001)(33656002)(2906002)(64756008)(66556008)(66446008)(8676002)(5660300002)(38100700002)(66476007)(52536014)(76116006)(4326008)(8936002)(53546011)(83380400001)(86362001)(66946007)(82960400001)(508600001)(71200400001)(55016003)(66574015)(166002)(38070700005)(9686003)(7696005)(966005)(40140700001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: jKUX38ff8swGaG8apsIs3tN5+VGRgXpCKU1m231A5EmuJO4LsbHjmtmAvhNo2HRjQw6nHJd81dphXkJOZaK6RXc268bqGOQuHa0Mkiqxjb0gWAItjjFdghMMG4I9zSxrZ2I2brbYq26OK4DqL4sSGWT4u41rxFm7zg55dG/9kaZFwWgrH+TPNzOE7Zc5rUR7H3bpdZnp1wwmtrS+vydQgEF1Qs5xIK3h4bijcZUiYYliO+4grVKx7iu4W5aKHPtewQYSPuny7j6YyeuYqOw/ufc4mNzWvx0HWhSPdjDRmJX/nYumsrjVUO0bGMsU/xVq/SEnyeM32Tiu2iJ/9Jp4epie+Fhoyxqy3CfL0o6QMx0DjXaIaJWfayc1s4imFQpSjfJeJ2j5/falAoXHnNU6gR0xY73zxajTCC/XKeSNoxKXzvMpjbDsbVbarV5zx8niEocZM9Cte3JAMi3dZWiVDFOJE6qZZUtT+xYuBQyUJm/Hug4iv381+xJH1/zXkSG57TQqafKoi/H/bhsm7k17stPhQ6gYD8ddv65kQKGr8vtISzGW+ebx4PAjuheZkEtmJ6pJE82tu5Yg26RwTZxNpYY9eAq/vrUQ7pxOJSwb8zPOlMC4x0Sshs8Zaeq7VjabKLF60WKEWL0yW0TFIEgcabEcJT3uZGSWmfvIl4yNsYXjkJWOFWUTMyujvK4hgB+IBApgN3qCeJZ4N9oSkLsRZG6SAxMX1zguZGymKpRJTR3/9Y55XXIke5wurkS01YEttOZGClCSwn6neEulUXA6C9vRZOQCe4DH9eKfbP+zJ5xCIvgRfDi024Hj66pJmcmGLRGVtUd+ESb01g9n5XaMlK298jakIHXA7yeoKH9uxrato2sf2lV2aZk07iXJbtSnWRsJcsQnGyY2pF5cfP0XXxUi3ajNkgtLbuBlzJDj17bFQyeo7VR6mJJg8FoW49PzoXbqMM+9mqX+/+ZuMbBjZYooAAfc3QlnEvz3EspbgFij1Avjf2wdutMnkSx6BGyPmrQPkJ56ZZEsXpnv48/AouRA2yPrfmYScaQM8sNYtYI64m5JAoCGWS89NhHaUKkTpGjf7rZvNLlhS9WUSd6MNp0ve+aOPKBzUT4isjlV6fxujacY7UwWlZCX7I3cQpCcuaiyTCXqwjQzbxwE+R7mZWglMBYK3LXwSULPJSvlkwNeVMcokoH/KkLo+9Z59C4xhfyZ+2ZmNrXtjn/eMJqhWNZeDHYA4hujoNJCQF0q3iM0spZF7/Dbk9hnQrj6L14O/rIqLP6ULGF3gbys61seLvzLWqM3QM55gFTJfxf7p1Dg2zd/yfk521FVgyNAfh4rQ27vdKHSBT3jwPeIuq8gsCTFV1pPfNWjbbOmzYi4w3mqSfXrHRtylOtEmHyrw26coZ2BFTTuMUvYNQw43jTZL21Pw88IpShY9w/Gx4dONITd9i4jchvScoKHQ6IwIhMHBu9LalUFMPllV8wRIcR/9wphKJhlLjkKlAsLmAxUMErnDgh/mOD+cwOhcLzuSHCgHt2KGahHmWYuB7NXAp2kXy9Nh8uzy1VYWAuQuN6Mu4MIwzMcpO5wVU5KaWetfU0UfqvSzwBo4N6KeeFQ4EtOypcOMiTsny4XRqmvimEzqVt6YfPuwYLtJizk6i3j7PKQFmcyDsZRyRuLEfC6ZEGkOv/544o4ZDToKS8GHPeKpqI=
Content-Type: multipart/alternative; boundary="_000_DM6PR08MB5084C4BED9EBE5A46E2C91AC9B4D9DM6PR08MB5084namp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR08MB5084.namprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: cbae39ba-3ddb-4fb4-0d58-08d9d22e47bb
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2022 22:37:26.2311 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: MLTHBf9Os+IP65h9TP0QjWG9qE9g9Vlm432vtlf3r2y6+KB5tytB7zOkz29VVYG9rmnS/y8GIJWLfasdQA3DeQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR08MB5804
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/VXEoMO1b3QGEeWxEOM3Hnq-CBCg>
Subject: Re: [netmod] Definitions of YANG schema and Packages (in packages draft) - Issue #74
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: Fri, 07 Jan 2022 22:37:34 -0000

Thanks Jürgen.



That might be a good idea to be more specific (i.e. "package schema").  It would result in statements like this in the Packages draft:



YANG package: A versioned organizational structure holding a set of related YANG modules that collectively define a YANG package schema.



package schema: The combined set of schema nodes defined by a YANG package. A datastore schema can be a composition of one or more package schema.



   *  To allow YANG datastore schema to be specified in a concise way rather than…



   1.  A YANG package MAY represent a complete YANG datastore schema or only part of a YANG datastore schema with some module import dependencies missing, as described in Section 5.4.



Jason



> -----Original Message-----

> From: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>

> Sent: Thursday, January 6, 2022 5:09 PM

> To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>

> Cc: netmod@ietf.org

> Subject: Re: [netmod] Definitions of YANG schema and Packages (in packages

> draft) - Issue #74

>

> Perhaps it is best to avoid defining the term 'YANG schema', in

> particular if it is the same as the schema implied by a YANG package,

> which I would call a "package schema". I assume that a datastore can

> support multiple packages (not sure, but there is text about "the

> union of a set of compatible packages" in the YANG packages I-D) and

> hence a 'datastore schema' is a composition of one or more "package

> schema".

>

> Perhaps the term "YANG schema" should be left as an opaque name for

> any kind of schema, i.e., any of "datastore schema", "package schema",

> "TBD schema". I think we carefully avoided using "YANG schema" during

> the NMDA and YANG library update work. It might be good if the

> packages work also avoids allocating that term - and using "package

> schema" and 'datastore schema' may actually help to avoid confusion.

>

> /js

>

> On Thu, Jan 06, 2022 at 09:41:43PM +0000, Sterne, Jason (Nokia - CA/Ottawa)

> wrote:

> > Hi all,

> >

> > This email is related to the items (a) and (c) in Issue #74 of the YANG

> versioning work:

> > https://github.com/netmod-wg/yang-ver-dt/issues/74

> >

> > ========================================================

> > First some background:

> >

> > "YANG schema" is not defined in RFC7950 or 8342 (NMDA).

> >

> > 8342 defines the following:

> >

> >    o  schema node: A node in the schema tree.  The formal definition is

> >       provided in RFC 7950.

> >

> >    o  datastore schema: The combined set of schema nodes for all modules

> >       supported by a particular datastore, taking into consideration any

> >       deviations and enabled features for that datastore.

> >

> > 7950 defines the following:

> >

> >    o  schema node: A node in the schema tree.  One of action, container,

> >       leaf, leaf-list, list, choice, case, rpc, input, output,

> >       notification, anydata, and anyxml.

> >

> >    o  schema tree: The definition hierarchy specified within a module.

> >

> > ========================================================

> > Some current definitions in YANG Packages 02

> https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-packages/

> >

> > Abstract

> >

> >    This document defines YANG packages, a versioned organizational

> >    structure holding a set of related YANG modules that collectively

> >    define a YANG schema.

> >

> > Section 1:

> >

> >    *  YANG schema:  A datastore schema, not bound to any particular

> datastore.

> >

> >    *  YANG package: An organizational structure containing a collection

> >       of YANG modules, normally defined in a YANG instance data file.  A

> >       YANG package defines a YANG schema by specifying a set of YANG

> >       modules and their revisions, other packages and their revisions,

> >       mandatory features, and deviations.  YANG packages are defined in

> >       Section 5.

> >

> > Section 2:

> >

> >    A YANG package is an organizational structure that groups a set of

> >    YANG modules together into a consistent versioned definition.

> >

> > Section 5:

> >

> >    A YANG package is a versioned organizational structure defining a set

> >    of related YANG modules, packages, features, and deviations.  A YANG

> >    package collectively defines a YANG schema.

> >

> > ========================================================

> > Proposed updates to the packages draft (changes highlighted in red)

> > - unify the short description of a package in the 4 places (don't try to include

> all details of a package in this short description)

> > - but do we need more than this short description in the abstract and

> sections 1 and 2 ?

> > - do we even need a term called "YANG Schema" ?

> >

> > Abstract

> >

> >    This document defines YANG packages: a versioned organizational

> >    structure defining a set of YANG modules, features, and deviations.

> >

> > Section 1:

> >

> >    This document also makes of the following terminology introduced in

> >    the YANG 1.1 Data Modeling Language [RFC7950]:

> >

> >    *  data node

> >

> >    *  schema node

> >

> >    In addition, this document defines the following terminology:

> >

> >   * YANG schema: The combined set of schema nodes for a set of modules,

> taking into consideration any deviations and enabled features.

> >

> >    * YANG package: A versioned organizational structure defining a set of

> YANG modules, features, and deviations.  A YANG package collectively defines

> a YANG schema.

> > - leave out "normally defined in a YANG instance data file"

> > - leave out "other packages and their revisions"

> > - leave out "submodules"

> > - leave out anything about mount points

> > - "set" vs "collection" vs "groups" vs "holding" of YANG modules:   use "set"

> of YANG modules

> >

> > Section 2:

> >

> >    A YANG package is a versioned organizational structure defining a set of

> YANG modules, features, and deviations.  For

> >    example, a YANG package could define the set of YANG modules required

> >    to implement an L2VPN service on a network device.  YANG packages can

> >    themselves refer to, and reuse, other package definitions.

> > [or add mentions of included packages and mount points here in section 2 ?

> section 1? abstract ?]

> >

> > Section 5:

> >

> >    A YANG package is a versioned organizational structure defining a set

> >    of related YANG modules, packages, features, and deviations.  A YANG

> >    package collectively defines a YANG schema.

> >

> > Jason

> >

> >

> >

>

> > _______________________________________________

> > netmod mailing list

> > netmod@ietf.org<mailto:netmod@ietf.org>

> > https://www.ietf.org/mailman/listinfo/netmod

>

>

> --

> Jürgen Schönwälder              Jacobs University Bremen gGmbH

> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany

> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>