Model

class StorageModel

StorageModel provides a layered view of the storage stack. The layers currently exposed by the model are:

  • SCSI
  • Multipath
  • Disks
  • Mounts
  • Utils

All layers are fetched lazily and cached inside the model. When you think that the cache no longer up-to-date, you can clear it using the refresh() method

Getting an instance

get_storage_model()

returns a global instance of a infi.storagemodel.base.StorageModel.