Ejemplo n.º 1
0
 def get_PSCSIs(self):
     PSCSIs = []
     uuid = self.get_uuid()
     for pscsi in XendAPIStore.get_all('PSCSI'):
         if pscsi.get_HBA() == uuid:
             PSCSIs.append(pscsi.get_uuid())
     return PSCSIs
Ejemplo n.º 2
0
 def get_PSCSIs(self):
     PSCSIs = []
     uuid = self.get_uuid()
     for pscsi in XendAPIStore.get_all('PSCSI'):
         if pscsi.get_HBA() == uuid:
             PSCSIs.append(pscsi.get_uuid())
     return PSCSIs
Ejemplo n.º 3
0
 def get_by_sbdf(self, domain, bus, slot, func):
     for ppci in XendAPIStore.get_all("PPCI"):
         if ppci.get_domain() == parse_hex(domain) and \
            ppci.get_bus() == parse_hex(bus) and \
            ppci.get_slot() == parse_hex(slot) and \
            ppci.get_func() == parse_hex(func):
             return ppci.get_uuid()
     return None
Ejemplo n.º 4
0
 def get_by_sbdf(self, domain, bus, slot, func):
     for ppci in XendAPIStore.get_all("PPCI"):
         if ppci.get_domain() == parse_hex(domain) and \
            ppci.get_bus() == parse_hex(bus) and \
            ppci.get_slot() == parse_hex(slot) and \
            ppci.get_func() == parse_hex(func):
             return ppci.get_uuid()
     return None
Ejemplo n.º 5
0
 def get_by_sbdf(self, domain, bus, slot, func):
     for ppci in XendAPIStore.get_all("PPCI"):
         if ppci.get_domain() == int(domain, 16) and \
            ppci.get_bus() == int(bus, 16) and \
            ppci.get_slot() == int(slot, 16) and \
            ppci.get_func() == int(func, 16):
             return ppci.get_uuid()
     return None
Ejemplo n.º 6
0
 def get_by_sbdf(self, domain, bus, slot, func):
     for ppci in XendAPIStore.get_all("PPCI"):
         if ppci.get_domain() == int(domain, 16) and \
            ppci.get_bus() == int(bus, 16) and \
            ppci.get_slot() == int(slot, 16) and \
            ppci.get_func() == int(func, 16):
             return ppci.get_uuid()
     return None
Ejemplo n.º 7
0
 def get_by_HCTL(self, physical_HCTL):
     for pscsi in XendAPIStore.get_all("PSCSI"):
         if pscsi.get_physical_HCTL() == physical_HCTL:
             return pscsi.get_uuid()
     return None
Ejemplo n.º 8
0
 def get_by_physical_host(self, physical_host):
     for pscsi_HBA in XendAPIStore.get_all('PSCSI_HBA'):
         if pscsi_HBA.get_physical_host() == physical_host:
             return pscsi_HBA.get_uuid()
     return None
Ejemplo n.º 9
0
 def get_by_HCTL(self, physical_HCTL):
     for pscsi in XendAPIStore.get_all("PSCSI"):
         if pscsi.get_physical_HCTL() == physical_HCTL:
             return pscsi.get_uuid()
     return None
Ejemplo n.º 10
0
 def get_by_physical_host(self, physical_host):
     for pscsi_HBA in XendAPIStore.get_all('PSCSI_HBA'):
         if pscsi_HBA.get_physical_host() == physical_host:
             return pscsi_HBA.get_uuid()
     return None