{% extends 'generic/object.html' %} {% load render_table from django_tables2 %} {% block breadcrumbs %} {{ block.super }} {% endblock breadcrumbs %} {% block content %}
{# Left column #}
Endpoint
Service {{ object.service|linkify }}
Routing Type {% badge object.service.get_routing_type_display bg_color=object.service.get_routing_type_color %}
Name {{ object.name|default:"—" }}
Connection Type {% badge object.get_connection_type_display bg_color=object.get_connection_type_color %}
Attachment
Routed Device {{ object.routed_device|linkify|default:"—" }}
Routed Interface {{ object.routed_interface|linkify|default:"—" }}
Physical Device {{ object.physical_device|linkify|default:"—" }}
Physical Interface {{ object.physical_interface|linkify|default:"—" }}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/comments.html' %}
{# Right column #}
Encapsulation
Mode {% badge object.get_encapsulation_mode_display bg_color=object.get_encapsulation_mode_color %}
S-VLAN {{ object.encapsulation_s_vlan|linkify|default:"—" }}
C-VLAN {{ object.encapsulation_c_vlan|linkify|default:"—" }}
P2P Addresses
IPv4 Address {{ object.ipv4_addr|linkify|default:"—" }}
IPv6 Address {{ object.ipv6_addr|linkify|default:"—" }}
{% if not object.service.is_bgp %}
Static Routing
Next Hop IPv4 {{ object.static_next_hop_v4|linkify|default:"—" }}
Next Hop IPv6 {{ object.static_next_hop_v6|linkify|default:"—" }}
{% endif %} {% include 'inc/panels/tags.html' %}
{% if object.service.is_bgp %}
BGP Sessions {% if perms.netbox_cesnet_services_plugin.add_serviceipbgpsession %} Add BGP Session {% endif %}
{% render_table bgp_sessions_table 'inc/table.html' %}
{% endif %} {% endblock content %}