Don't put interfaces with no settings into the configuration
parent
a89fea37a9
commit
8fc40e6c19
|
|
@ -113,6 +113,7 @@ chassis {
|
|||
|
||||
|
||||
{% macro interfaceconfig(interface,rack = None) %}
|
||||
{% if not (interface.name.contains('-')) or interface.name or interface.description or interface.lag or interface.ip_addresses.count() or interface.connected_endpoints or interface.mode or interface.tagged_vlans or interface.untagged_vlan %}
|
||||
{{ interface.name }} {
|
||||
{% if interface.description != '' %}
|
||||
description "{{ interface.description }}";
|
||||
|
|
@ -195,6 +196,7 @@ chassis {
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro interfacesection(device,vlans) %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue