Add missing endfor to vlan_parser example (#72872)
This commit is contained in:
parent
bc37976df2
commit
e97f333532
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue