What is YANG?
YANG is a specialised schema language, similar to XSD Schema or RelaxNG but (was) specific to NETCONF.
Its goal is to model all content that is exchanged during protocol sessions between peers, as described in RFC6020:
YANG is a language used to model data for the NETCONF protocol. A YANG module defines a hierarchy of data that can be used for NETCONF- based operations, including configuration, state data, Remote Procedure Calls (RPCs), and notifications. This allows a complete description of all data sent between a NETCONF client and server.
There are tools and server implementations out there that simply consume the YANG module set (a YANG model) and are ready to be used as dummy implementations.
There are also tools that use the model to enable users to query a device, without actually implementing anything specific about the device. You could say that a set of YANG modules exposes the interface provided by a device. What you do with this interface is entirely up to you.
Development environment
- Maven 3.5.2 or later
- Java 8-compliant JDK
- An appropriate Maven settings.xml file. A simple way to get the default OpenDaylight settings.xml file is: hit below URL and save file in .m2
https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml