Versions Compared

Key

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

 

YANG Tools Overview

YANG Tools is a infrastructure project aiming to develop necessary tooling
and libraries providing support of NETCONF and YANG for Java
(JVM-language based) projects and applications.

...

  • Is immutable
  • Provides a mechanism for mutation (Builder pattern, etc.)
  • Understands the schema that was used to construct it.
  • Store will be based on DataNode.

...

Data

...

node

...

is

...

categorized

...

in

...

two

...

sub-type:

...

  •  Inner node

...

  • represents

...

  • container

...

  • and

...

  • list.

...

  • Leaf

...

  • node

...

  • represents

...

  • leaf

...

  • and

...

  • leaf-list.
 

...

ResourceId: Resource identifier, Its list of node key to drive path till the resource, where key is contains the local node name and the corresponding module namespace. 

 

  • Is immutable
  •  Provides a mechanism for mutation (Builder pattern, etc.)
  •  Used to operate on a given resource.

...

ModelObject: Provides a common basis for all POJOs which are generated from a YANG model.

      • It is mutable.

      •  The binding between ModelObject POJO and DataNode is performed by the YANG Runtime.

...

Parse the input YANG file and produces DataModel. It compiles Yang files against the YANG grammar version 1.0 using ANTLR tool and updates the data model tree.

DataModel:

 

...

Abstract representation of YANG in JAVA tree format, it is later serialized and used by YANG runtime to understand the schema information.

...

Linker:

Links the various Intra File/Inter-File/ Inter-JAR YANG constructs dependencies. For ex: grouping and uses linking, typedef and type linking. Import, imclude depencency.

...