feat: CPU & RAM from Netbox-Utilities in device tables and clusters

Device tables get optional CPU and RAM columns. Clusters show physical
cores/threads and host RAM with vCPU-per-core ratio and RAM allocation.
Also fixes decimal formatting of vCPU and rack units (245.00, HE 40.0).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-29 11:29:37 +01:00
1 parent 4ec96bf65d
commit 55c70814c3
5 files changed
+110 -13

No files matched your search

+9
View File
@@ -322,6 +322,15 @@ summed vCPU, RAM and disk of its VMs, plus a host table with VMs, vCPU and RAM p
Only VMs inside the export scope are counted, so a tenant export does not reveal other
tenants' VMs on a shared cluster.
### CPU & RAM (Netbox-Utilities)
If [Netbox-Utilities](https://git.mrblake.cc/MrBlake/Netbox-Utilities) with CPU & RAM is installed:
- Device tables offer the columns **CPU** (model, count, cores/threads) and **RAM** (total, modules, type and speed).
- The **Virtualization clusters** section adds the physical cores/threads and RAM of the hosts and shows the overcommitment: vCPU per physical core (e.g. `2,6 : 1`) and assigned VM RAM as a percentage of host RAM, per cluster and per host.
RAM is shown in binary units like in Netbox-Utilities (1 GB = 1024 MB), so VM and host values are comparable. Without the plugin the columns stay empty and the cluster section shows VM totals only.
### Rack elevations
By default the plugin uses NetBox's own `dcim.svg.RackElevationSVG` in-process