Templates
Let's take a look at the role of templates in network automation.
We'll cover the following
Templates
Templates are human-readable Jinja2 files made up of logical operators, dynamic variables, and static text. Once combined with group and host variables, each device receives a unique configuration derived from and based on the dynamic templates. The spacing of the text, syntax, and unique platform variations of text all need to match a device’s running-configuration. Templates ensure that intentions are defined and that golden configurations on all devices adhere to the standards.
Here is a sample template, in the Jinja2 format, to configure VLANs on a device:
Get hands-on with 1400+ tech skills courses.