From bbd8b63f31e28c974b0423ace1d749e24f91cff5 Mon Sep 17 00:00:00 2001 From: Dan Ankers Date: Fri, 28 Jun 2024 21:05:12 +0100 Subject: [PATCH] Fix neighbour addresses for overlay --- juniper-macros.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper-macros.j2 b/juniper-macros.j2 index c98d0a8..5b75883 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -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 %}