{% load i18n %}

add interface Interfaces

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

{{ i.vlan }} {% 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 %} {% include "dashboard/vm-detail-network-port-add.html" %}
{{ l.ipv4.host }}:{{ l.ipv4.port }} {{ l.private }}/{{ l.proto }} {% trans "Remove" %}
vm.ik.bme.hu:2262022/tcp{% trans "remove" %}
vm.ik.bme.hu:2262012344/tcp{% trans "remove" %}
vm.ik.bme.hu:226208080/tcp{% trans "remove" %}
{% for l in i.host.list_ports %} {% if l.ipv6 %} {% endif %} {% endfor %} {% include "dashboard/vm-detail-network-port-add.html" %}
{{ l.ipv6.host }}:{{ l.ipv6.port }} {{ l.private }}/{{ l.proto }} {% trans "Remove" %}
550.vm.ik.bme.hu:2222/tcp{% trans "remove" %}
550.vm.ik.bme.hu:1234412344/tcp{% trans "remove" %}
550.vm.ik.bme.hu:80808080/tcp{% trans "remove" %}
{% endif %} {% endfor %}