Fix typos/thinkos
parent
ddf018c4f9
commit
41be232924
|
|
@ -146,19 +146,19 @@ chassis {
|
|||
{% macro interfacesection(device,vlans) %}
|
||||
interfaces {
|
||||
{# Physical interfaces should be sorted by FPC/PIC/Port value - that's a challenge to do in Jinja so we cheat for now by putting the xe- interfaces first. This won't work for all devices! #}
|
||||
{% for interface in device.interfaces.filter(name__startswith=='xe-') %}
|
||||
{% for interface in device.interfaces.filter(name__startswith='xe-') %}
|
||||
{{ interfaceconfig(interface) }}
|
||||
{% endfor %}
|
||||
{% for interface in device.interfaces.filter(name__startswith=='et-') %}
|
||||
{% for interface in device.interfaces.filter(name__startswith='et-') %}
|
||||
{{ interfaceconfig(interface) }}
|
||||
{% endfor %}
|
||||
{% for interface in device.interfaces.filter(name__startswith=='ae') %}
|
||||
{% for interface in device.interfaces.filter(name__startswith='ae') %}
|
||||
{{ interfaceconfig(interface,device.rack.name[5:]) }}
|
||||
{% endfor %}
|
||||
{% for interface in device.interfaces.filter(name__exact=='em0') %}
|
||||
{% for interface in device.interfaces.filter(name__exact='em0') %}
|
||||
{{ interfaceconfig(interface) }}
|
||||
{% endfor %}
|
||||
{% for interface in device.interfaces.filter(name__startswith=='irb') %}
|
||||
{% for interface in device.interfaces.filter(name__startswith='irb') %}
|
||||
{% if loop.first %}
|
||||
irb {
|
||||
{% endif %}
|
||||
|
|
@ -172,7 +172,7 @@ interfaces {
|
|||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for interface in device.interfaces.filter(name__startswith=='lo') %}
|
||||
{% for interface in device.interfaces.filter(name__startswith='lo') %}
|
||||
{{ interfaceconfig(interface) }}
|
||||
{% endfor %}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue