Configuration Templates
Explore the use of Jinja2 templates and data models to automate network configurations such as VLAN, VRF, OSPF, and port-channel setups. Understand how to apply various interface types and customize templates to streamline network management.
We'll cover the following...
Here are more examples of templates that can be refactored to fit or used directly in a network for configuration management coverage by function. The matching data model dictionaries will be posted for reference to make it easier to connect the two. However, focus on the templates at this point.
Below are examples of Jinja2 templates and playbooks to help you with your configurations.
VLAN
Here is an example for VLAN configuration:
Data model: group_vars/CAMPUS.yml
global_campus_defaults:
native_vlan: 99
Data model: host_vars/DIST01.yml
VRF
Here is an example for VRF configuration:
Data model: group_vars/CAMPUS-DIST.YML and CAMPUS-CORE.YML