
Support for Juniper switches is added via the Ansible junos_* modules. This affects the following command: kayobe physical network configure
19 lines
395 B
Django/Jinja
19 lines
395 B
Django/Jinja
#jinja2: trim_blocks: True,lstrip_blocks: True
|
|
|
|
{% for line in juniper_switch_config %}
|
|
{{ line }}
|
|
{% endfor %}
|
|
|
|
interfaces {
|
|
{% for interface, config in juniper_switch_interface_config.items() %}
|
|
{{ interface }} {
|
|
{% if config.description is defined %}
|
|
description "{{ config.description }}";
|
|
{% endif %}
|
|
{% for line in config.config %}
|
|
{{ line }}
|
|
{% endfor %}
|
|
}
|
|
{% endfor %}
|
|
}
|