{% if not server %}
Select a vCenter server to compare with NetBox VMs.
{% elif not cached_data %}
{% else %}
{{ in_both_count }}
In Both
{{ only_vcenter_count }}
Only in vCenter
{{ only_netbox_count }}
Only in NetBox
{{ diff_count }}
Spec Differences
{% if comparison.only_in_vcenter %}
{{ only_vcenter_count }}
Only in vCenter (Can Import)
| VM Name |
Power |
vCPUs |
Memory |
Disk |
Cluster |
{% for vm in comparison.only_in_vcenter %}
| {{ vm.name }} |
{% if vm.power_state == 'on' %}
ON
{% else %}
OFF
{% endif %}
|
{{ vm.vcpus|default:'-' }} |
{{ vm.memory_mb|default:'-' }} |
{{ vm.disk_gb|default:'-' }} |
{{ vm.cluster|default:'-' }} |
{% endfor %}
{% endif %}
{% if diff_count > 0 %}
{{ diff_count }}
VMs with Spec Differences
| VM Name |
Field |
vCenter |
NetBox |
{% for vm in comparison.in_both %}
{% if vm.has_differences %}
{% if vm.vcenter.vcpus != vm.netbox.vcpus %}
| {{ vm.name }} |
vCPUs |
{{ vm.vcenter.vcpus|default:'-' }} |
{{ vm.netbox.vcpus|default:'-' }} |
{% endif %}
{% if vm.vcenter.memory_mb != vm.netbox.memory_mb %}
| {{ vm.name }} |
Memory (MB) |
{{ vm.vcenter.memory_mb|default:'-' }} |
{{ vm.netbox.memory_mb|default:'-' }} |
{% endif %}
{% if vm.vcenter.disk_gb != vm.netbox.disk_gb %}
| {{ vm.name }} |
Disk (GB) |
{{ vm.vcenter.disk_gb|default:'-' }} |
{{ vm.netbox.disk_gb|default:'-' }} |
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if comparison.only_in_netbox %}
{{ only_netbox_count }}
Only in NetBox (Not in {{ server }})
| VM Name |
vCPUs |
Memory |
NetBox Cluster |
{% for vm in comparison.only_in_netbox %}
| {{ vm.name }} |
{{ vm.vcpus|default:'-' }} |
{{ vm.memory_mb|default:'-' }} |
{{ vm.cluster|default:'-' }} |
{% endfor %}
These VMs exist in NetBox but were not found in {{ server }}.
They may be on a different vCenter or have been deleted.
{% endif %}
{% endif %}