Support GE interfaces
parent
91bf65108f
commit
0b674b1f6a
|
|
@ -164,6 +164,9 @@ chassis {
|
||||||
{% macro interfacesection(device,vlans) %}
|
{% macro interfacesection(device,vlans) %}
|
||||||
interfaces {
|
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! #}
|
{# 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='ge-') %}
|
||||||
|
{{ interfaceconfig(interface) }}
|
||||||
|
{% endfor %}
|
||||||
{% for interface in device.interfaces.filter(name__startswith='xe-') %}
|
{% for interface in device.interfaces.filter(name__startswith='xe-') %}
|
||||||
{{ interfaceconfig(interface) }}
|
{{ interfaceconfig(interface) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue