Welcome to YAML & Jinja¶
These sections will cover Jinja and YAML, two interdependent pieces within network automation. While both YAML and Jinja can become relatively complex in terms of what they can accomplish and what can be done with them, we will only cover what is necessary to utilize these tools for network automation and DevOps. We will tie everything together at the end of the YAML and Jinja sections by rendering some device configurations.
If you are just getting started, jump into the first section, the YAML overview.
-
YAML
Introduce learners to YAML (YAML Ain't Markup Language), its syntax, structure, and use in configuration files.
-
YAML Lab
This is the follow-up YAML lab section, which walks through editing some YAML files and creating the data models necessary to build some network device configurations.
-
Jinja
Introduce learners to Jinja, a powerful templating engine for Python, commonly used in web development and configuration file generation (for example, Ansible, Flask, YAML templates).
-
Jinja Lab
This is the follow-up Jinja lab section, which walks through editing some Jinja templates to render the network device configurations using the data models created in the YAML lab section.