What is data model – Yang ?

Data model provides the definition of any “anything” which can be easily understood and agreed upon. Using the generic data model, you can describe an individual in a way that is easy for others to understand.

Whatever the communication is done by using the API’s are actually encoding in some data format and most of them uses the data model underneath. This is what we will be discussing in this post. Let’s see how this can be understood by creating data model of car:

Module CAR
OEM: Ford, Volkswagen, Maruti
Engine: Diesel, Pertol
Color: Blue, Green,Black
Type: Sedan, Hatchback

Which language is used to define data models?
YANG is not name of any person but YANG (Yet Another Next Generation) is a data modelling language uses YANG language to write YANG models, providing a standardized way to model the operational and configuration data of a network device. YANG, being a language protocol independent, can then be converted into any data format encoding like XML or JSON. YANG is a language for describing any type of data models. But it was originally designed for networking data models. Below are good aspects of YANG to remember:

It is a very structured language
Every data model is a module
Containers are used to group related type of nodes.
Lists (It’s same programming list) is used to identify nodes that are stored in sequence.
Data types can be imported from another YANG module or defined within a module.
Each individual attribute of a node is represented by a leaf.


Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Become a member

Full Access to 739 Lessons. New Lessons Added Every Week!

Awesome Deal! Get 2 Months for FREE!

No Obligations. Cancel At Any Time!