Skip to content

Also support RFC 8525, YANG Library, revision 2019-01-04  #144

@kwatsen

Description

@kwatsen

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:

  1. use an additional parameter/flag to indicate the YL's revision
  2. 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:

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions