Configuration Templates
Let's take a look at some examples of Jinja2 templates for VLAN, VRF, OSPF, static routes, etc.
We'll cover the following...
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:
VLAN template and partial
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:
VRF template and partial
Data model: group_vars/CAMPUS-DIST.YML and CAMPUS-CORE.YML