Add missing endfor to vlan_parser example (#72872)

pull/52229/head
devon-mar 4 years ago committed by GitHub
parent bc37976df2
commit e97f333532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save