{% extends 'generic/object.html' %} {% load render_table from django_tables2 %} {% block content %}
{# Left column #}
Service L2VPN
Name {{ object.name }}
Status {% badge object.get_status_display bg_color=object.get_status_color %}
Active {% checkmark object.active %}
Tenant {{ object.tenant|linkify|default:"—" }}
Monitored {% checkmark object.monitored %}
Service Start {{ object.service_start|date:"Y-m-d H:i"|default:"—" }}
Service End {{ object.service_end|date:"Y-m-d H:i"|default:"—" }}
RT Tickets {{ object.rt|default:"—" }}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/comments.html' %}
{# Right column #}
L2VPN
{% if object.l2vpn_type == "evpn-vpws" %} {% endif %}
Type {% badge object.get_l2vpn_type_display bg_color=object.get_l2vpn_type_color %}
NetBox L2VPN {{ object.l2vpn|linkify|default:"—" }}
{% if object.l2vpn_type == "evpn-vpws" or object.l2vpn_type == "evpn-elan" %}EVI{% else %}PW-ID{% endif %} {{ object.identifier|default:"—" }}
MTU {{ object.mtu }}
Group {{ object.group_name|default:"—" }}
{% if object.is_point_to_point %}P2P Name{% else %}Bridge Domain{% endif %} {{ object.instance_name|default:"—" }}
EVPN Service {{ object.evpn_service|default:"—" }}
{% if not object.is_point_to_point %}
Storm Control (kbps)
Unknown Unicast {{ object.storm_control_unknown_unicast|default:"—" }}
Multicast {{ object.storm_control_multicast|default:"—" }}
Broadcast {{ object.storm_control_broadcast|default:"—" }}
{% endif %} {% include 'inc/panels/tags.html' %}
Endpoints ({{ endpoint_count }}) {% if perms.netbox_cesnet_services_plugin.add_serviceendpoint %} {% if not object.is_point_to_point or endpoint_count < 2 %} Add Endpoint {% endif %} {% endif %}
{% if endpoint_count %}
{% render_table endpoints_table 'inc/table.html' %}
{% else %}
No endpoints. A service needs at least two endpoints before it can be activated.
{% endif %}
{% endblock content %}