{% for constraint in slice.slice_constraints %}
{% if constraint.WhichOneof('constraint')=='custom' %}
Custom |
{{ constraint.custom.constraint_type }} |
{{ constraint.custom.constraint_value }} |
{% elif constraint.WhichOneof('constraint')=='endpoint_location' %}
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 %}
|
{% elif constraint.WhichOneof('constraint')=='endpoint_priority' %}
Endpoint Priority |
{{ constraint.endpoint_priority.endpoint_id.device_id.device_uuid.uuid }} / {{
constraint.endpoint_priority.endpoint_id.endpoint_uuid.uuid }}
|
{{ constraint.endpoint_priority.priority }} |
{% elif constraint.WhichOneof('constraint')=='sla_availability' %}
SLA Availability |
- |
{{ constraint.sla_availability.num_disjoint_paths }} disjoint paths;
{% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}active
|
{% else %}
- |
- |
{{ constraint }} |
{% endif %}
{% endfor %}