{% extends 'base.html' %} {% block content %}

Service {{ service.service_id.service_uuid.uuid }}

UUID: {{ service.service_id.service_uuid.uuid }}

Type: {{ ste.Name(service.service_type).replace('SERVICETYPE_', '') }}

Status: {{ sse.Name(service.service_status.service_status).replace('SERVICESTATUS_', '') }}

{% for endpoint in service.service_endpoint_ids %} {% endfor %}
Endpoints Device
{{ endpoint.endpoint_uuid.uuid }} {{ endpoint.device_id.device_uuid.uuid }}
Constraints: {% for constraint in service.service_constraints %} {% if constraint.WhichOneof('constraint')=='custom' %} {% elif constraint.WhichOneof('constraint')=='endpoint_location' %} {% elif constraint.WhichOneof('constraint')=='endpoint_priority' %} {% elif constraint.WhichOneof('constraint')=='sla_availability' %} {% else %} {% endif %} {% endfor %}
Kind Type Value
Custom {{ constraint.custom.constraint_type }} {{ constraint.custom.constraint_value }}
Endpoint Location {{ constraint.endpoint_location.endpoint_id.device_id.device_uuid.uuid }} / {{ constraint.endpoint_location.endpoint_id.endpoint_uuid.uuid }} {% if constraint.endpoint_location.location.WhichOneof('location')=='region' %} Region: {{ constraint.endpoint_location.location.region }} {% elif constraint.endpoint_location.location.WhichOneof('location')=='gps_position' %} Position (lat/long): {{ constraint.endpoint_location.location.gps_position.latitude }} / {{ constraint.endpoint_location.location.gps_position.longitude }} {% endif %}
Endpoint Priority {{ constraint.endpoint_priority.endpoint_id.device_id.device_uuid.uuid }} / {{ constraint.endpoint_priority.endpoint_id.endpoint_uuid.uuid }} {{ constraint.endpoint_priority.priority }}
SLA Availability - {{ constraint.sla_availability.num_disjoint_paths }} disjoint paths; {% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}active
- - {{ constraint }}
Configurations: {% for config in service.service_config.config_rules %} {% if config.WhichOneof('config_rule') == 'custom' %} {% endif %} {% endfor %}
Key Value
{{ config.custom.resource_key }}
    {% for key, value in (config.custom.resource_value | from_json).items() %}
  • {{ key }}: {{ value }}
  • {% endfor %}
{% for connection in connections.connections %} {% for i in range(connection.path_hops_endpoint_ids|length) %} {% endfor %} {% endfor %}
Connection Id Sub-service Path
{{ connection.connection_id.connection_uuid.uuid }} {{ connection.path_hops_endpoint_ids[i].device_id.device_uuid.uuid }} / {{ connection.path_hops_endpoint_ids[i].endpoint_uuid.uuid }}
{% endblock %}