{% load i18n %} {% load network_tags %}
{% with op=op.add_interface %}{% if op %} {% trans "add interface" %} {% endif %}{% endwith %}

{% trans "Interfaces" %}

{% for i in networks %}

{{ i.name }} {% if not i.subnet.enable_dhcp %}({% trans "unmanaged" %}){% endif %} {% if user.is_superuser and i.host %} {% trans "edit" %} {% endif %} {% with op=op.remove_interface %}{% if op %} {% trans "remove" %} {% endif %}{% endwith %}

{% trans "IPv4 address" %}:
{{ i.ipv4 }}
{#
{% trans "IPv6 address" %}:
{{ i.ipv6 }}
#} {#
{% trans "DNS name" %}:
{{ i.host.get_fqdn }}
#} {#
{% trans "Groups" %}:
#} {#
#} {# {% for g in i.host.groups.all %}#} {# {{ g }}{% if not forloop.last %},{% endif %}#} {# {% empty %}#} {# -#} {# {% endfor %}#} {#
#}
{% if i.internet_access %}
{% if i.public_ip %}
{% trans "Public IP address" %} {% with op=op.remove_public_ip %}{% if op %} {% trans "remove" %} {% endif %}{% endwith %}
{{ i.public_ip }}
{% else %} {% with op=op.add_public_ip %}{% if op %} {% trans "Associate public IP" %} {% endif %}{% endwith %} {% endif %}
{% endif %} {# {% if i.host %}#} {#
#} {# #} {#

{% trans "Port access" %}

#} {#
#} {#
#} {# #} {# #} {# #} {# #} {# #} {# {% for l in i.host.list_ports %}#} {# {% if l.ipv4 %}#} {# #} {# #} {# #} {# #} {# #} {# #} {# {% endif %}#} {# {% endfor %}#} {# #} {#
#} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {#
#} {# {% display_portforward4 l %}#} {# #} {# {{ l.private }}/{{ l.proto }}#} {# #} {# #} {# #} {# {% trans "Remove" %}#} {# #} {# #} {#
#} {#
#} {#
#} {# {% if i.host.ipv6 %}#} {# #} {# #} {# #} {# #} {# #} {# {% for l in i.host.list_ports %}#} {# {% if l.ipv6 %}#} {# #} {# #} {# #} {# #} {# #} {# #} {# {% endif %}#} {# {% endfor %}#} {# #} {#
#} {# #} {# #} {# #} {# #} {# #} {#
#} {# {% display_portforward6 l %}#} {# #} {# {{ l.private }}/{{ l.proto }}#} {# #} {# #} {# {% trans "Remove" %}#} {# #} {#
#} {# {% else %}#} {#

{% trans "This VM doesn't have an IPv6 address!" %}

#} {# {% endif %}#} {#
#} {# {% include "dashboard/vm-detail/_network-port-add.html" %}#} {#
#} {#
#} {# {% endif %}#}
{% endfor %}