Files
MrBlakeandClaude Opus 5.5 c8b581089c feat: CPU & RAM per server with a catalogue of Intel and AMD server CPUs
Devices get a CPU & RAM panel: CPU model from a built-in catalogue of
over 700 Intel Xeon and AMD Opteron/EPYC server CPUs since 2012 (cores,
threads, base/turbo clock, TDP, socket, year, max sockets; checked against
Intel ARK, AMD and server vendor data), CPU count and RAM with modules,
type and speed. The catalogue is loaded by migration 0011, can be edited
and extended in the UI and refreshed with netbox_utilities_cpu_catalog.

Virtualization: clusters show their capacity (cores, threads and RAM of
the hosts against the vCPUs and memory of the VMs, vCPU:core ratio, RAM
allocation, N+1 reserve) with a per-host table, hosts list their VMs and
VMs show the CPU of their host. Optional columns for the device and
cluster lists, CSV import, REST API, GraphQL and search are included.
The plugin menu is now called "Hardware".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 10:53:36 +01:00

40 lines
877 B
Python

from netbox.search import SearchIndex
from .models import CPUModel, Disk, RAIDGroup
class DiskIndex(SearchIndex):
model = Disk
fields = (
("serial", 60),
("model", 150),
("manufacturer", 200),
("firmware", 300),
("description", 500),
("comments", 5000),
)
display_attrs = ("device", "slot", "status", "capacity_gb", "tenant")
class RAIDGroupIndex(SearchIndex):
model = RAIDGroup
fields = (
("name", 100),
("description", 500),
)
display_attrs = ("device", "level")
class CPUModelIndex(SearchIndex):
model = CPUModel
fields = (
("name", 100),
("family", 300),
("socket", 500),
("description", 500),
)
display_attrs = ("manufacturer", "cores", "threads", "base_clock_ghz")
indexes = [DiskIndex, RAIDGroupIndex, CPUModelIndex]