| new skills - Team Nuggets
New Training: Understand Model Driven Programmability
In this 6-video skill, CBT Nuggets trainer John McGovern explores the world of Model Driven Programmability and YANG! Watch this new Cisco training.
Watch the full course: Designing Cisco Enterprise Networks
This training includes:
- 6 videos
- 56 minutes of training
You’ll learn these topics in this skill:
- Introduction to Model Driven Programmability
- Transactional Configurations
- Node Types & Leaf Attributes
- Exploring YANG with Pyang
- Linux Tricks for YANG
- YANG Data Modelling with the CLI
How to Configure Your Network with YANG and Python
YANG is a data modeling language used by NETCONF or RESTCONF to configure networking equipment. NETCONF will transport YANG modelled data encoded in XML to a device over SSH. RESTCONF will do the same but it can be encoded in XML or JSON and sent over HTTPS as opposed to SSH.
Because YANG can be used for automation through scripting, it is common for network engineers to utilize Python with it to automate networking configuration tasks. One of the libraries that network engineers can use with Python to configure YANG configurations is Pyang.
Pyang is a YANG validator, transformator, and code generator. It can be used to validate YANG modules for correctness and transform YANG modules into different formats. It can also be used to write plugins to generate YANG code from other modules as well.
Pyang can be installed through the Python Pip package manager. If it is installed outside of its default location, it is recommended to set an environment variable path to the YANG_INSTALL directory. Otherwise, it may not work properly. For more information about Pyang, use the 'man pyang' command from the command line after it is installed.