WindowsStorageMixin implements napalm-device-types' HostStorageMixin, so the host reports its storage and stays a host: - get_disks: Get-PhysicalDisk with medium, bus, Windows' health and the Storage Spaces pool a disk is in; a Storage Spaces virtual disk is no physical disk. - get_disk_smart: Get-StorageReliabilityCounter per disk (temperature, wear, power-on hours, uncorrected read and write errors). A counter that cannot be read is no counter, not an error; disks that report nothing are left out. - get_disk_pools: Storage Spaces' pools. - get_volumes: fixed volumes mounted at a drive letter or in a folder, with file system and health. A disk whose medium Windows cannot tell and whose counters are empty (a virtual disk, a RAID controller's logical disk) reads temperature -1 and health "unknown". Every script probes its cmdlets first. The fixtures are synthetic; the scripts are in harvest.py for the first real host.
Synthetic fixtures
These files are what the driver's PowerShell scripts emit, not raw device
output: each script projects its cmdlet results onto flat, primitive fields and
ends in ConvertTo-Json. The shape is therefore this driver's own contract,
and the Python side is tested against it here.
What they cannot prove is that the scripts produce this shape on a real host (property names, Windows PowerShell 5.1 serialisation quirks). They are to be replaced by output recorded from a Windows Server and a Windows 11 client.