Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is no issue parsing the actual schema-mounts JSON. It just treats the JSON as data and converts it into NormalizedNode instance.
The problem is the schema-mount JSON is not a data, it's an instruction to server to modify the model it holds runtime. Unfortunately
taking into account the context (when treat the data as data and when as an instruction dependingseparating a treating differently the actual data from the instruction) in not fully implemented yet.

...

It means the MountPointContext is not a part of SchemaContext which holds a static information on YANG resources involved, but a 
runtime context used on data parsing. 

Schema mount support for JSON parser was requested via https://jira.opendaylight.org/browse/YANGTOOLS-1267


Analysis summary

  • While schema-mounts is only supported by XML data parser for now it will require either awaiting (request) for similar functionality
    to be implemented in JSON parser or to provide own JSON parser which supports it (significant extra effort).
  • CPS requires additional logic and persistence layer update in order to support YANG schema/library management requests like
    data implementing ietf-yang-schema-mount and/or ietf-yang-library
  • CPS requires mechanism to store and retrieve on data parse the MountPointContext based on schema-mounts updates.

...