{% include 'create_inst_block.html' %}
{% include 'errors_block.html' %}
{% if request.user.is_superuser %}
Name |
Host |
Status |
VCPU |
Memory |
Actions |
{% for host, inst in all_host_vms.items %}
{% for vm, info in inst.items %}
{{ vm }} |
{{ host.1 }} |
{% ifequal info.status 1 %}
{% trans "Active" %}
{% endifequal %}
{% ifequal info.status 5 %}
{% trans "Off" %}
{% endifequal %}
{% ifequal info.status 3 %}
{% trans "Suspend" %}
{% endifequal %}
|
{{ info.vcpu }} |
{{ info.memory }} {% trans "MB" %} |
|
{% endfor %}
{% endfor %}
{% else %}
Name |
Status |
VCPU |
Memory |
Actions |
{% for host, vm in all_user_vms.items %}
{{ vm.name }} |
{% ifequal vm.status 1 %}
{% trans "Active" %}
{% endifequal %}
{% ifequal vm.status 5 %}
{% trans "Off" %}
{% endifequal %}
{% ifequal vm.status 3 %}
{% trans "Suspend" %}
{% endifequal %}
|
{{ vm.vcpu }} |
{{ vm.memory }} {% trans "MB" %} |
|
{% endfor %}
{% endif %}