Fix neighbour addresses for overlay

netbox
Dan Ankers 2024-06-28 21:05:12 +01:00
parent d243b4ab05
commit bbd8b63f31
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ routing-options {
session-mode automatic;
}
{% for interface in device.interfaces.filter(cable__isnull=False) %}
neighbor {{ interface.connected_endpoints[0].ip_addresses.first().address.ip }};
neighbor {{ interface.connected_endpoints[0].device.primary_ip4.address.ip }};
{% endfor %}
}
{%- endmacro %}