Don't put interfaces with no settings into the configuration
parent
a89fea37a9
commit
8fc40e6c19
|
|
@ -113,6 +113,7 @@ chassis {
|
||||||
|
|
||||||
|
|
||||||
{% macro interfaceconfig(interface,rack = None) %}
|
{% 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 }} {
|
{{ interface.name }} {
|
||||||
{% if interface.description != '' %}
|
{% if interface.description != '' %}
|
||||||
description "{{ interface.description }}";
|
description "{{ interface.description }}";
|
||||||
|
|
@ -195,6 +196,7 @@ chassis {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
{% macro interfacesection(device,vlans) %}
|
{% macro interfacesection(device,vlans) %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue