Correct IP address

netbox
Dan Ankers 2024-06-28 20:42:16 +01:00
parent 6d62bf9c35
commit 86b64d6454
1 changed files with 2 additions and 2 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].primary_ip4.address.ip }};
neighbor {{ interface.connected_endpoints[0].addresses.first().address.ip }};
{% endfor %}
}
{%- endmacro %}
@ -272,7 +272,7 @@ routing-options {
multiple-as;
}
{% for interface in device.interfaces.filter(cable__isnull=False) %}
neighbor {{ interface.connected_endpoints[0].primary_ip4.address.ip }} {
neighbor {{ interface.connected_endpoints[0].addresses.first().address.ip }} {
peer-as {{ interface.connected_endpoints[0].local_context_data['underlay_as'] }};
}
{% endfor %}