17ce724fa4
This encapsulates the differences between switch OS modules. Also add support for global switch configuration.
17 lines
366 B
Django/Jinja
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 %}
|