{% load i18n %}

add interface Interfaces

{% for i in instance.interface_set.all %}

{{ i.vlan.name }} {% if not i.host %}(unmanaged) remove{% endif %}

{% if i.host %}
{% trans "IPv4 address" %}:
{{ i.host.ipv4 }}
{% trans "IPv6 address" %}:
{{ i.host.ipv6 }}
{% trans "DNS name" %}:
{{ i.host.get_fqdn }}
{% trans "Groups" %}:
{% for g in i.host.groups.all %} {{ g }}{% if not forloop.last %},{% endif %} {% endfor %}

Port access

{% for l in i.host.list_ports %} {% if l.ipv4 %} {% endif %} {% endfor %}
{{ l.ipv4.host }}:{{ l.ipv4.port }} {{ l.private }}/{{ l.proto }} {% trans "Remove" %}
{% if i.host.ipv6 %} {% for l in i.host.list_ports %} {% if l.ipv6 %} {% endif %} {% endfor %}
{{ l.ipv6.host }}:{{ l.ipv6.port }} {{ 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 %}

{% trans "Add new network interface!" %}

{% csrf_token %}