mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 03:54:15 +00:00
Add Emulator info. Revisit Hypervisors info on overview page
This commit is contained in:
parent
52ade2ee9d
commit
717241a421
2 changed files with 11 additions and 2 deletions
|
@ -34,7 +34,8 @@
|
||||||
<h3 class="page-header">{% trans "Basic details" %}</h3>
|
<h3 class="page-header">{% trans "Basic details" %}</h3>
|
||||||
<div class="col-xs-4 col-sm-3">
|
<div class="col-xs-4 col-sm-3">
|
||||||
<p>{% trans "Hostname" %}</p>
|
<p>{% trans "Hostname" %}</p>
|
||||||
<p>{% trans "Hypervisor" %}</p>
|
<p>{% trans "Hypervisors" %}</p>
|
||||||
|
<p>{% trans "Emulator" %}</p>
|
||||||
<p>{% trans "Memory" %}</p>
|
<p>{% trans "Memory" %}</p>
|
||||||
<p>{% trans "Architecture" %}</p>
|
<p>{% trans "Architecture" %}</p>
|
||||||
<p>{% trans "Logical CPUs" %}</p>
|
<p>{% trans "Logical CPUs" %}</p>
|
||||||
|
@ -44,7 +45,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-8 col-sm-7">
|
<div class="col-xs-8 col-sm-7">
|
||||||
<p>{{ hostname }}</p>
|
<p>{{ hostname }}</p>
|
||||||
<p>{{ hypervisor }}</p>
|
<p>{% for arch, hpv in hypervisor.items %}
|
||||||
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||||
|
<span class="label label-default">{{ arch }}</span>
|
||||||
|
{% for h in hpv %}
|
||||||
|
<span class="label label-primary">{{ h }}</span>{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
</p>
|
||||||
|
<p>{{ emulator }}</p>
|
||||||
<p>{{ host_memory|filesizeformat }}</p>
|
<p>{{ host_memory|filesizeformat }}</p>
|
||||||
<p>{{ host_arch }}</p>
|
<p>{{ host_arch }}</p>
|
||||||
<p>{{ logical_cpu }}</p>
|
<p>{{ logical_cpu }}</p>
|
||||||
|
|
|
@ -156,6 +156,7 @@ def overview(request, compute_id):
|
||||||
hostname, host_arch, host_memory, logical_cpu, model_cpu, uri_conn = conn.get_node_info()
|
hostname, host_arch, host_memory, logical_cpu, model_cpu, uri_conn = conn.get_node_info()
|
||||||
hypervisor = conn.hypervisor_type()
|
hypervisor = conn.hypervisor_type()
|
||||||
mem_usage = conn.get_memory_usage()
|
mem_usage = conn.get_memory_usage()
|
||||||
|
emulator = conn.emulator()
|
||||||
conn.close()
|
conn.close()
|
||||||
except libvirtError as lib_err:
|
except libvirtError as lib_err:
|
||||||
error_messages.append(lib_err)
|
error_messages.append(lib_err)
|
||||||
|
|
Loading…
Reference in a new issue