Add missing endfor to vlan_parser example (#72872)

This commit is contained in:
devon-mar 2020-12-08 07:25:56 -08:00 committed by GitHub
parent bc37976df2
commit e97f333532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1266,6 +1266,7 @@ Another example Jinja template::
switchport trunk allowed vlan {{ parsed_vlans[0] }}
{% for i in range (1, parsed_vlans | count) %}
switchport trunk allowed vlan add {{ parsed_vlans[i] }}
{% endfor %}
This allows for dynamic generation of VLAN lists on a Cisco IOS tagged interface. You can store an exhaustive raw list of the exact VLANs required for an interface and then compare that to the parsed IOS output that would actually be generated for the configuration.