Correct local context

netbox
Dan Ankers 2024-06-28 20:47:26 +01:00
parent b03b646aa2
commit d243b4ab05
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ routing-options {
}
{% for interface in device.interfaces.filter(cable__isnull=False) %}
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].device.local_context_data['underlay_as'] }};
}
{% endfor %}
}