Correct IP address

netbox
Dan Ankers 2024-06-28 20:45:18 +01:00
parent 86b64d6454
commit b03b646aa2
1 changed files with 2 additions and 2 deletions

View File

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