{% extends "base.html" %} {% load staticfiles %} {% load i18n %} {% block title %}{% trans "Instance" %} - {{ vname }}{% endblock %} {% block content %} {% include 'pleasewaitdialog.html' %}

{{ vname }}{% if title %} ({{ title }}){% endif %}

{% if status == 5 %} {% trans "Off" %} {% endif %} {% if status == 1 %} {% trans "Active" %} {% endif %} {% if status == 3 %} {% trans "Suspend" %} {% endif %} | | {% if snapshots %} | {% endif %} {% if cur_vcpu %} {{ cur_vcpu }} {% trans "VCPU" %} {% else %} {{ vcpu }} {% trans "VCPU" %} {% endif %} | {{ cur_memory }} {% trans "MB" %} {% trans "RAM" %} | {% for disk in disks %} {{ disk.size|filesizeformat }} {% trans "Disk" %} | {% endfor %} {% for net in networks %} {% for ipv4 in net.ipv4 %} {{ ipv4 }} | {% endfor %} {% endfor %}
{% if user_quota_msg %}
{{ user_quota_msg|capfirst }} {% trans "quota reached" %}. {% endif %}
{% include 'errors_block.html' %}
{% if status == 1 %}

{% trans "This action sends an ACPI shutdown signal to the instance." %}

{% csrf_token %}

{% trans "This action forcibly powers off and start the instance and may cause data corruption." %}

{% csrf_token %}

{% trans "This action forcibly powers off the instance and may cause data corruption." %}

{% csrf_token %}
{% if request.user.is_superuser %}

{% trans "This action suspends the instance." %}

{% csrf_token %}
{% endif %} {% endif %} {% if status == 3 %} {% if request.user.is_superuser %}

{% trans "This action restore the instance after suspend." %}

{% csrf_token %}

{% trans "This action forcibly powers off the instance and may cause data corruption." %}

{% csrf_token %}
{% else %}

{% trans "Administrator blocked your instance." %}

{% csrf_token %}
{% endif %} {% endif %} {% if status == 5 %}

{% trans "Click on Power On button to start this instance." %}

{% csrf_token %} {% if instance.is_template %}

{% trans "Template instance cannot be started." %}

{% else %} {% endif %}
{% endif %}

{% trans "This action opens a new window with a VNC connection to the console of the instance." %}

{% if status == 1 %} {% else %} {% endif %}
{% if show_access_root_password == 'True' %}

{% trans "You need shut down your instance and enter a new root password." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}
{% endif %} {% if show_access_ssh_keys == 'True' %}

{% trans "You need shut down your instance and choose your public key." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}
{% endif %} {% if status == 1 %}

{% trans "This action opens a remote viewer with a connection to the console of the instance." %}

{% endif %}
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %} {% if status == 5 or not vcpus %}
{% csrf_token %}

{% trans "Logical host CPUs" %} : {{ vcpu_host }}

{% if status == 5 %} {% else %} {% endif %}
{% else %}

{% trans "Logical Instance Active/Maximum CPUs" %} : {{ cur_vcpu }} / {{ vcpu }}

{% for id, vcpu in vcpus.items %}
{% csrf_token %}
{% if vcpu.enabled == 'yes' and vcpu.hotpluggable == "yes" %} {% elif vcpu.enabled == 'yes' and vcpu.hotpluggable == "no" %} {% else %} {% endif %}
{% endfor %}
{% endif %} {% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
{% csrf_token %}

{% trans "Total host memory" %}: {{ memory_host|filesizeformat }}

{% trans "Custom value" %}
{% trans "Custom value" %}
{% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
{% csrf_token %}

{% trans "Disk allocation (GB)" %}:

{% for disk in disks %}
{% endfor %} {% if status == 5 %} {% else %} {% endif %}
{% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}
{% if status == 5 %}

{% trans "This may take more than an hour, depending on how much content is on your droplet and how large the disk is." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}
{% else %}

{% trans "To take a snapshot please Power Off the instance." %}

{% endif %}
{% if snapshots %}

{% trans "Choose a snapshot for restore/delete" %}

{% for snap in snapshots %} {% endfor %}
{% trans "Name" %} {% trans "Date" %} {% trans "Action" %}
{{ snap.name }} {{ snap.date|date:"M d H:i:s" }}
{% csrf_token %} {% if status == 5 %} {% else %} {% endif %}
{% csrf_token %}
{% else %}

{% trans "You do not have any snapshots" %}

{% endif %}
{% if request.user.is_superuser %}

{% trans 'Autostart' %}

{% csrf_token %}

{% trans "Autostart your instance when host server is power on " %} {% if autostart == 0 %} {% else %} {% endif %}

{% trans 'Boot Order' %}

{% csrf_token %}
{% if status == 5 %}

{% trans "Enable Boot Menu for your instance when it starts up " %} {% if bootmenu == 0 %} {% else %} {% endif %} {% else %} {% if bootmenu == 0 %}

**** {% trans "Please shutdown instance to modify boot menu" %} ****

{% endif %} {% endif %}
{% if bootmenu == 1 %}
{% for idx, val in boot_order.items %} {% endfor %}
{% csrf_token %}
{% for disk in disks %} {% endfor %} {% for cd in media %} {% endfor %} {% for net in networks %} {% endfor %}
{% endif %}
{% csrf_token %}

{% trans "Instance Media" %}

{% for cd in media %}
{% csrf_token %}
{% trans "CD-ROM" %} {{ forloop.counter }} {% if not cd.image %}
{% if media_iso and allow_admin_or_not_template %} {% else %} {% endif %} {% if status == 5 and allow_admin_or_not_template %} {% endif %}
{% else %}
{% if allow_admin_or_not_template %} {% else %} {% endif %}
{% endif %}
{% empty %}
{% trans 'There is not any CD-ROM device.' %}
{% endfor %}

{% trans "Instance Volume" %} {% include 'add_instance_volume.html' %}

{% for disk in disks %} {% endfor %}
{% trans "Device" %} {% trans "Used" %} {% trans "Capacity" %} {% trans "Storage" %} {% trans "Source" %} {% trans "Action" %}
{{ disk.dev }} {{ disk.used | filesizeformat}} {{ disk.size | filesizeformat }} {{ disk.storage }} {{ disk.path }}
{% csrf_token %} {% include 'edit_instance_volume.html' with id=forloop.counter0 %} {% if status == 5 %} {% else %} {% endif %}

{% trans "Add a network device" %} {% include 'add_instance_network_block.html' %}

{% trans "Network Devices" %}
{% for network in networks %} {% endfor %}
{% trans 'Name' %} {% trans 'Info' %} {% trans 'Info' %} {% trans 'Actions' %}
eth{{ forloop.counter0 }}({{ network.target|default:"no target" }})
{% csrf_token %} {% trans 'active' %}
{% trans 'MAC' %} {{ network.mac }} {% trans 'Filter' %} {{ network.filterref|default:"None" }} {% trans 'Source' %} {{ network.nic }}
{% csrf_token %}
{% csrf_token %}
{% trans 'IPv4' %} {% for ipv4 in network.ipv4|default:"unknown" %}{{ ipv4 }}{% endfor %} {% trans 'IPv6' %} {% for ipv6 in network.ipv6|default:"unknown" %}{{ ipv6 }}{% endfor %} {% trans 'Model' %} {{ network.model }} {% trans 'QoS' %}
{% csrf_token %} {% include 'add_network_qos.html' with id=forloop.counter0 %}
{% if qos %}

{% trans "QoS Configuration" %}

{% for q, attrs in qos.items %} {% for att in attrs %} {% csrf_token %} {% endfor %} {% endfor %}
{% trans "MAC" %}/{% trans "Direction" %} {% trans "Average" %} {% trans "Peak" %} {% trans "Burst" %} {% trans "Actions" %}
{% endif %}

{% trans "For migration both host servers must have equal settings and OS type" %}

{% csrf_token %}
{% if computes_count != 1 %} {% else %} {% endif %}

{% trans "If you need to edit XML please Power Off the instance" %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}

{% trans "Instance owners" %} {% include 'add_instance_owner_block.html' %}

{% for userinstance in userinstances %} {% endfor %}
{{ userinstance.user }}
{% csrf_token %}
{% endif %} {% if request.user.is_superuser or request.user.is_staff or userinstance.is_vnc %}

{% trans "To set console's type, shutdown the instance." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}

{% trans "To set console listen address, shutdown the instance." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}

{% trans "To create console password, shutdown the instance." %}

{% csrf_token %}
{% if console_passwd %} {% trans "Show" %} {% endif %} {% if status == 5 %} {% else %} {% endif %}

{% trans "To set console's keymap, shutdown the instance." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}
{% endif %} {% if request.user.is_superuser or request.user.userattributes.can_clone_instances %}

{% trans "Create a clone" %}

{% csrf_token %}
{% if request.user.is_superuser %}
{% elif clone_instance_auto_name %}
{% else %}
{% endif %}
{% if request.user.is_superuser %} {% for network in networks %}

{% endfor %} {% else %} {% for network in networks %} {% endfor %} {% endif %} {% if request.user.is_superuser %} {% for disk in disks %}
{% if disk.format == 'qcow2' %}
{% trans 'Metadata' %}
{% endif %}
{% endfor %} {% else %} {% for disk in disks %} {% endfor %} {% endif %}
{% if status == 5 %} {% else %} {% endif %}

{% trans "To set instance template name description, shutdown the instance." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}

{% trans "To set instance video model, shutdown the instance." %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}

{% trans "To set instance vCPUs hotpluggable" %}

{% csrf_token %}
{% if status == 5 %} {% else %} {% endif %}

{% trans "To Enable/Disable Qemu Guest Agent. Status" %}: {% if status == 1 %} {% if guest_agent_ready %} {% else %} {% endif %}

{% else %} {% endif %}
{% csrf_token %}
{% endif %}
{% trans "CPU Usage" %}
{% trans "Memory Usage" %}
{% for net in networks %}
{% trans "Bandwidth Device" %}: eth{{ forloop.counter0 }}
{% endfor %} {% for disk in disks %}
{% trans "Disk I/O device" %}: {{ disk.dev }}
{% endfor %}
{% trans "Date" %} {% trans "User" %} {% trans "Message" %}
{% trans 'None' %}...

{% trans "Delete storage for instance?" %}

{% if request.user.is_superuser or userinstance.is_delete %} {% if status == 3 %} {% else %}
{% csrf_token %}
{% if nvram %}
{% endif %}
{% endif %} {% else %} {% endif %}
{% if app_settings.VIEW_INSTANCE_DETAIL_BOTTOM_BAR == 'True' %} {% include 'bottom_bar.html' %} {% endif %} {% endblock %} {% block script %} {% endblock %}