{% load helpers %}
{% if not endpoint and perms.nautobot_bgp_models.add_peerendpoint %} Add {% endif %} {% if endpoint %} Detail {% endif %} {% if endpoint and perms.nautobot_bgp_models.change_peerendpoint %} Edit {% endif %}
Peer Endpoint - {{ side }} Side
{% if endpoint %} {% if endpoint.routing_instance and endpoint.routing_instance.device %} {% elif not endpoint.routing_instance %} {% endif %}
Device {{ endpoint.routing_instance.device }}Provider {% include "nautobot_bgp_models/inc/native_property.html" with property=endpoint.autonomous_system.provider %}
Local IP Address {% if endpoint.fields_inherited.source_ip.value %} {% include "nautobot_bgp_models/inc/inheritable_property.html" with property=endpoint.fields_inherited.source_ip %} {% elif endpoint.fields_inherited.source_interface.value %} {{ endpoint.local_ip }} via {% include "nautobot_bgp_models/inc/inheritable_property.html" with property=endpoint.fields_inherited.source_interface %} {% endif %}
Autonomous System {% include "nautobot_bgp_models/inc/inheritable_property.html" with property=endpoint.fields_inherited.autonomous_system %}
Peer Group {% include "nautobot_bgp_models/inc/native_property.html" with property=endpoint.peer_group %}
{% else %}
None
{% endif %}