Subject: [Netmod-ver-dt] Schema selection for selecting between schema families

From: "Rob Wilton (rwilton)" <[email-masked]>
Date: Wed, 15 Jan 2020 15:23:22 +0000

In addition to the examples for selecting different versions of a schema, I think that an example of selecting between different schema families may also be useful.

I've provided an example in the attachment.

A verbatim copy of the intro text is:

Schema families, configurable primary, secondary and custom schema
==================================================================

This example illustrates a device is that capable of supporting 3 different schema families (native, oc, ietf).

The clients may configure the device in three different ways:

(1) If they just want to use a single schema family for all interactions with the device then they have the choice of changing the primary schema to the particular schema family.  No secondary schema are required (or allowed).

(2) If they want to use multiple schema families, but restrict some interactions to a particular schema family, then they leave the primary schema as "combined-schema", but configure their desired secondary schema (any combination or "vendor-schema", "ietf-schema" or "oc-schema").

(3) If there is a need to use ietf or OC schema alongside the vendor schema, then this can be achieved by configuring a custom schema.  Two custom schema can be configured, either "vendor + ietf schema", or "vendor + oc schema".  Once the custom schema has been configured then it could be used either as the single primary schema, or it could be used as a secondary schema with the primary schema set to "combined-schema".

Note, for the last case, rather than requiring the client to configure custom schema, the device could predefine "vendor + ietf schema" and "vendor + oc" schema.

Thanks,
Rob