{% extends 'virtualization/virtualmachine/base.html' %} {% load buttons %} {% load static %} {% load helpers %} {% load plugins %} {% load i18n %} {% block content %}
{% trans "Virtual Machine" %}
{% trans "Name" %} {{ object }}
{% trans "Status" %} {% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Role" %} {{ object.role|linkify|placeholder }}
{% trans "Platform" %} {{ object.platform|linkify|placeholder }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Tenant" %} {% if object.tenant.group %} {{ object.tenant.group|linkify }} / {% endif %} {{ object.tenant|linkify|placeholder }}
{% trans "Config Template" %} {{ object.config_template|linkify|placeholder }}
{% trans "Primary IPv4" %} {% if object.primary_ip4 %} {{ object.primary_ip4.address.ip }} {% if object.primary_ip4.nat_inside %} ({% trans "NAT for" %} {{ object.primary_ip4.nat_inside.address.ip }}) {% elif object.primary_ip4.nat_outside.exists %} ({% trans "NAT" %}: {% for nat in object.primary_ip4.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) {% endif %} {% copy_content "primary_ip4" %} {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Primary IPv6" %} {% if object.primary_ip6 %} {{ object.primary_ip6.address.ip }} {% if object.primary_ip6.nat_inside %} ({% trans "NAT for" %} {{ object.primary_ip6.nat_inside.address.ip }}) {% elif object.primary_ip6.nat_outside.exists %} ({% trans "NAT" %}: {% for nat in object.primary_ip6.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) {% endif %} {% copy_content "primary_ip6" %} {% else %} {{ ''|placeholder }} {% endif %}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} {% plugin_left_page object %}
{% trans "Cluster" %}
{% trans "Site" %} {{ object.site|linkify|placeholder }}
{% trans "Cluster" %} {% if object.cluster.group %} {{ object.cluster.group|linkify }} / {% endif %} {{ object.cluster|linkify|placeholder }}
{% trans "Cluster Type" %} {{ object.cluster.type }}
{% trans "Device" %} {{ object.device|linkify|placeholder }}
{% trans "Resources" %}
{% trans "Virtual CPUs" %} {{ object.vcpus|placeholder }}
{% trans "Memory" %} {% if object.memory %} {{ object.memory|humanize_megabytes }} {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Disk Space" %} {% if object.disk %} {{ object.disk }} {% trans "GB" context "Abbreviation for gigabyte" %} {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Services" %} {% if perms.ipam.add_service %} {% endif %}
{% htmx_table 'ipam:service_list' virtual_machine_id=object.pk %}
{% plugin_right_page object %}
{% trans "Virtual Disks" %} {% if perms.virtualization.add_virtualdisk %} {% endif %}
{% htmx_table 'virtualization:virtualdisk_list' virtual_machine_id=object.pk %}
{% plugin_full_width_page object %}
{% endblock %}