{% load i18n sizeformat parse_date %} {% load url from future %}

{% trans "Name" %}
{{ vpnservice.name|default:_("None") }}
{% trans "Description" %}
{{ vpnservice.description|default:_("None") }}
{% trans "ID" %}
{{ vpnservice.id }}
{% trans "Project ID" %}
{{ vpnservice.tenant_id }}
{% trans "Router ID" %}
{% url 'horizon:project:routers:detail' vpnservice.router_id as router_url %}
{{ vpnservice.router.name_or_id }}
{% trans "Subnet ID" %}
{% url 'horizon:project:networks:subnets:detail' vpnservice.subnet_id as subnet_url %}
{{ vpnservice.subnet.name_or_id }} {{ vpnservice.subnet.cidr }}
{% trans "VPN Connections" %}
{% for conn in vpnservice.ipsecsiteconns %} {% url 'horizon:project:vpn:ipsecsiteconnectiondetails' conn.id as conn_url %} {{ conn.name_or_id }}
{% endfor %}
{% trans "Admin State" %}
{{ vpnservice.admin_state_up }}
{% trans "Status" %}
{{ vpnservice.status }}