Subject: [netmod] YANG library with datastores and schema mount

From: Ladislav Lhotka <[email-masked]>
Date: Wed, 29 Mar 2017 11:29:16 -0500

Hi,

I put together an initial mockup of the idea that I talked about yesterday – unified YANG library subsuming datastores and schema mount:

https://github.com/netmod-wg/schema-mount/wiki/YANG-Library-with-Datastores-and-Schema-Mount

Notes:

- The data consists of the lists: "module", "datastore" and "schema".

- The "module" part is exactly identical to the current YANG library: it defines modules with revisions, supported features etc. These modules can then be referenced (repeatedly) in the "schema" part to build up the overall data model. The assumption is that every module can be implemented only in one version.

- The "datastore" part lists the available datastores and defines, perhaps along with other things, the schema by referring to one or more entries of the "schema" list. A named schema can be used in any number of datastores.

- Each entry of the "schema" part lists the schema's "top-level" modules and, optionally, mounted schemas.

- YANG library will not only be provided as state (meta)data by servers, it can also be thought of as a companion data modelling mini-language to YANG where YANG defines modules and YANG Library tells everything about how they fit together. I envision that both can be also used in RFCs for specifying data models.

The mockup is really just a quick kick-off, most things can be discussed and done differently, but I believe it is important to have all this information represented in a compact way and in a single place.

Thanks, Lada

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67