YANG Flashcards
What is YANG
YANG is a language for describing data models. Although it can describe any data model, it was originally designed for networking data models.
What are aspects of YANG?
-Every data model is a module, a self-contained top-level hierarchy of nodes.
- Data types can be imported from another YANG module or defined within a module.
- It uses containers to group related nodes.
- It uses lists to identify nodes that are stored in sequence.
- A leaf represents each individual attribute of a node.
- Every leaf must have an associated type.
How is an individual data model called?
YANG Module
What are device data models?
- YANG Language
- Clear text
- XML
- JSON
- HTML or Javascript
What is a helpfull tool for YANG language?
PYANG
How is a module structured?
- Containers
- Within each container you have list(s)
Every leaf has attributes like: RO/RW, ?
How can you receive YANG data with netconf?
With XML
How you can you receive YANG data with restconf?
With JSON
What is perfect with YANG
It is an open standard but vendors can create explicated augment or deviate from the standard with additional data