def updateHostHypervisorCapability(self,
                                    id,
                                    maxDataVolumes,
                                    vmSnapshotEnabled=None):
     cmd = updateHypervisorCapabilities.updateHypervisorCapabilitiesCmd()
     cmd.id = id
     if maxDataVolumes != None:
         cmd.maxdatavolumeslimit = maxDataVolumes
     if vmSnapshotEnabled != None:
         cmd.vmsnapshotenabled = vmSnapshotEnabled
     self.apiclient.updateHypervisorCapabilities(cmd)
Ejemplo n.º 2
0
    def tearDown(self):
        try:

            cmd = updateHypervisorCapabilities.updateHypervisorCapabilitiesCmd()
            cmd.id = self.hostCapId
            cmd.maxguestslimit = self.originalLimit
            self.apiclient.updateHypervisorCapabilities(cmd)

            cleanup_resources(self.apiclient, self.cleanup)
        except Exception as e:
            raise Exception("Warning: Exception during cleanup : %s" % e)
        return
Ejemplo n.º 3
0
    def tearDown(self):
        try:

            cmd = updateHypervisorCapabilities.updateHypervisorCapabilitiesCmd(
            )
            cmd.id = self.hostCapId
            cmd.maxguestslimit = self.originalLimit
            self.apiclient.updateHypervisorCapabilities(cmd)

            cleanup_resources(self.apiclient, self.cleanup)
        except Exception as e:
            raise Exception("Warning: Exception during cleanup : %s" % e)
        return