Cisco's YDK-Gen
In a prior module, we covered the usage of YDK for configuring and reading operational data from devices. Let's now explore the more advanced capabilities of YDK, this time programatically generating Python class bindings directly from YANG models.
Overview
In this portion of the lab, you will perform the following:
- From GitHub, download the ydk-gen repository.
- From the ydk-gen repository, install the ydk-gen Python requirements.
- From the devices, download select YANG models and save them to disk.
- From the saved YANG models, use ydk-gen to generate a Python package.
- From pip, install the Python package generated from ydk-gen.
- From Python, import our generated code.
- From Python, interact with our devices using the generated classes.