{% 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 }}
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_mb|default:'-' }} |
{% firstof vm.cluster vm.host '-' %} |
{% endfor %}
{% endif %}
{% if diff_count > 0 %}
{{ diff_count }}
VMs with Differences
| VM Name |
Field |
vCenter |
NetBox |
{% for vm in comparison.in_both %}
{% if vm.has_differences %}
{% if vm.diffs.vcpus %}
| {{ vm.name }} |
vCPUs |
{{ vm.vcenter.vcpus|default:'-' }} |
{{ vm.netbox.vcpus|default:'-' }} |
{% endif %}
{% if vm.diffs.memory %}
| {{ vm.name }} |
Memory (MB) |
{{ vm.vcenter.memory_mb|default:'-' }} |
{{ vm.netbox.memory_mb|default:'-' }} |
{% endif %}
{% if vm.diffs.disk %}
| {{ vm.name }} |
Disk (MB) |
{{ vm.vcenter.disk_mb|default:'-' }} |
{{ vm.netbox.disk_mb|default:'-' }} |
{% endif %}
{% if vm.diffs.primary_ip %}
| {{ vm.name }} |
Primary IP |
{{ vm.vcenter.primary_ip|default:'-' }} |
{{ vm.netbox.primary_ip|default:'-' }} |
{% endif %}
{% if vm.diffs.cluster %}
| {{ vm.name }} |
Cluster |
{{ vm.vcenter_cluster|default:'-' }} |
{{ vm.netbox.cluster|default:'-' }} |
{% endif %}
{% if vm.diffs.notes %}
| {{ vm.name }} |
Notes / Comments |
{{ vm.vcenter.notes|truncatechars:200 }} |
{{ vm.netbox.comments|default:'-'|truncatechars:200 }} |
{% 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 %}