{% extends "base.html" %} {% block body %}

List of VMs

{% for vm in vms %} {% endfor %}
Name State
{{ vm['name'] }} {% if vm['online'] %} {% if vm['active'] %}
Active
{% else %}
Online
{% endif %} {% else %}
Offline
{% endif %}

List of Hosts

{% for host in hosts.values() %} {% endfor %}
Name Memory Cpu Slots
{{ host['host'] | shortname }} {{ (host['mem']['left'] / 1024**3) | round }} / {{ host['mem']['total'] / 1024**3 | round }} {{ host['cpu']['left'] }} / {{ host['cpu']['total'] }} {% set total = (host['slots']['left'] + host['slots']['allocated']) | length %} {{ host['slots']['left'] | length }} / {{ total }}
{% endblock %}