def save_PSCSI_HBAs(self): pscsi_HBA_records = dict([ (pscsi_HBA_uuid, XendAPIStore.get(pscsi_HBA_uuid, "PSCSI_HBA").get_record()) for pscsi_HBA_uuid in XendPSCSI_HBA.get_all() ]) self.state_store.save_state('pscsi_HBA', pscsi_HBA_records)
def save_PSCSI_HBAs(self): pscsi_HBA_records = dict([(pscsi_HBA_uuid, XendAPIStore.get( pscsi_HBA_uuid, "PSCSI_HBA").get_record()) for pscsi_HBA_uuid in XendPSCSI_HBA.get_all()]) self.state_store.save_state('pscsi_HBA', pscsi_HBA_records)
def get_PSCSI_HBA_refs(self): return XendPSCSI_HBA.get_all()