kayobe/ansible/roles/dell-switch/templates/dellos6-config.j2
Mark Goddard 17ce724fa4 Move Dell switch configuration to a dell-switch role
This encapsulates the differences between switch OS modules. Also add support
for global switch configuration.
2017-03-24 15:11:32 +00:00

17 lines
366 B
Django/Jinja

#jinja2: trim_blocks: True,lstrip_blocks: True
{% for line in dell_switch_config %}
{{ line }}
{% endfor %}
{% for interface, config in dell_switch_interface_config.items() %}
interface {{ interface }}
{% if config.description is defined %}
description {{ config.description }}
{% endif %}
{% for line in config.config %}
{{ line }}
{% endfor %}
exit
{% endfor %}