-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Description
Yangson currently supports the original RFC 7895, YANG Library, revision 2016-06-21.
This can be seen by grep-ing for the string "RFC7895" on these two pages:
The string may appear on other pages too. These two listed pages are only the ones that come to my mind ;)
The ask is for Yangson to also support RFC 8525.
How to Identify which YL is Provided
Two ideas:
- use an additional parameter/flag to indicate the YL's revision
- auto-sense the YL-revision (i.e., is "modules-state" than 7895, else 8525)
How to Identify which Datastore is Use
This assumes that each datastore can be supported by an instance of yangson.DataModel.
Only one idea:
- use an additional parameter/flag to indicate the datastore
Context
My RESTCONF server wishes to implement NMDA, in order to support the datastore described in draft-ietf-netmod-system-config, in order to support multi-tenancy (i.e., the 'host' system can share stuff with 'tenant' systems, that appear as data to the tenants.
Doing this with existing Yangson is a little awkward as my server MUST return RFC 8525 YL to clients, per RFC 8527, Section 2, and yet it doesn't consume that format itself. My code must maintain distinct instances of both YL revisions.