netbox
Daniel Ankers 2024-07-05 12:06:30 +01:00
parent d24db4deb2
commit a89fea37a9
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ interfaces {
}
{% endif %}
{# 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__contains='-')|j2_natsort(attribute="name) %}
{% for interface in device.interfaces.filter(name__contains='-')|j2_natsort(attribute="name") %}
{{ interfaceconfig(interface) }}
{% endfor %}
{% for interface in device.interfaces.filter(name__startswith='ae') %}