6754635010
Jinja2 templates rendered using Python 3 interpreter, are required to conform with Python 3 new semantics. singed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
26 lines
461 B
Django/Jinja
26 lines
461 B
Django/Jinja
!
|
|
{% block vrf %}
|
|
{% if VNET is defined %}
|
|
{% for vnet_name, vnet_metadata in VNET.items() %}
|
|
vrf {{ vnet_name }}
|
|
vni {{ vnet_metadata['vni'] }}
|
|
!
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endblock vrf %}
|
|
!
|
|
{% block interfaces %}
|
|
! Enable link-detect (default disabled)
|
|
{% for (name, prefix) in INTERFACE|pfx_filter %}
|
|
interface {{ name }}
|
|
link-detect
|
|
!
|
|
{% endfor %}
|
|
{% for pc in PORTCHANNEL %}
|
|
interface {{ pc }}
|
|
link-detect
|
|
!
|
|
{% endfor %}
|
|
{% endblock interfaces %}
|
|
!
|