Unify Redfish analysis through raw replay and add storage volumes

This commit is contained in:
Mikhail Chusavitin
2026-02-24 18:34:13 +03:00
parent 7a1285db99
commit 66fb90233f
5 changed files with 294 additions and 109 deletions

View File

@@ -88,6 +88,7 @@ type HardwareConfig struct {
CPUs []CPU `json:"cpus,omitempty"`
Memory []MemoryDIMM `json:"memory,omitempty"`
Storage []Storage `json:"storage,omitempty"`
Volumes []StorageVolume `json:"volumes,omitempty"`
PCIeDevices []PCIeDevice `json:"pcie_devices,omitempty"`
GPUs []GPU `json:"gpus,omitempty"`
NetworkCards []NIC `json:"network_cards,omitempty"`
@@ -245,6 +246,19 @@ type Storage struct {
ErrorDescription string `json:"error_description,omitempty"`
}
// StorageVolume represents a logical storage volume (RAID/VROC/etc.).
type StorageVolume struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Controller string `json:"controller,omitempty"`
RAIDLevel string `json:"raid_level,omitempty"`
SizeGB int `json:"size_gb,omitempty"`
CapacityBytes int64 `json:"capacity_bytes,omitempty"`
Status string `json:"status,omitempty"`
Bootable bool `json:"bootable,omitempty"`
Encrypted bool `json:"encrypted,omitempty"`
}
// PCIeDevice represents a PCIe device
type PCIeDevice struct {
Slot string `json:"slot"`