1ee19568b0
This extends the physical network configuration in Kayobe to configure Cumulus physical switches using the nclu Ansible module. Change-Id: I960027ead301c5793a0ada1959a23549a71bdbfb
14 lines
450 B
Django/Jinja
14 lines
450 B
Django/Jinja
#jinja2: trim_blocks: True,lstrip_blocks: True
|
|
{% for line in nclu_switch_config %}
|
|
{{ line }}
|
|
{% endfor %}
|
|
|
|
{% for interface, config in nclu_switch_interface_config.items() %}
|
|
{% if config.description is defined %}
|
|
add {{ config.type | default("interface") }} {{ interface }} alias {{ config.description }}
|
|
{% endif %}
|
|
{% for line in config.config %}
|
|
add {{ config.type | default("interface") }} {{ interface }} {{ line }}
|
|
{% endfor %}
|
|
{% endfor %}
|