Search in sources :

Example 11 with HypervisorGuru

use of com.cloud.hypervisor.HypervisorGuru in project cloudstack by apache.

the class VirtualMachineManagerImpl method toNicTO.

@Override
public NicTO toNicTO(final NicProfile nic, final HypervisorType hypervisorType) {
    final HypervisorGuru hvGuru = _hvGuruMgr.getGuru(hypervisorType);
    final NicTO nicTO = hvGuru.toNicTO(nic);
    return nicTO;
}
Also used : HypervisorGuru(com.cloud.hypervisor.HypervisorGuru) NicTO(com.cloud.agent.api.to.NicTO)

Aggregations

HypervisorGuru (com.cloud.hypervisor.HypervisorGuru)11 VirtualMachineTO (com.cloud.agent.api.to.VirtualMachineTO)7 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)6 DeployDestination (com.cloud.deploy.DeployDestination)5 ResourceUnavailableException (com.cloud.exception.ResourceUnavailableException)5 CheckVirtualMachineAnswer (com.cloud.agent.api.CheckVirtualMachineAnswer)4 AgentUnavailableException (com.cloud.exception.AgentUnavailableException)4 OperationTimedoutException (com.cloud.exception.OperationTimedoutException)4 CallContext (org.apache.cloudstack.context.CallContext)4 AgentControlAnswer (com.cloud.agent.api.AgentControlAnswer)3 Answer (com.cloud.agent.api.Answer)3 ClusterVMMetaDataSyncAnswer (com.cloud.agent.api.ClusterVMMetaDataSyncAnswer)3 PlugNicAnswer (com.cloud.agent.api.PlugNicAnswer)3 RebootAnswer (com.cloud.agent.api.RebootAnswer)3 RestoreVMSnapshotAnswer (com.cloud.agent.api.RestoreVMSnapshotAnswer)3 StartAnswer (com.cloud.agent.api.StartAnswer)3 StopAnswer (com.cloud.agent.api.StopAnswer)3 UnPlugNicAnswer (com.cloud.agent.api.UnPlugNicAnswer)3 NicTO (com.cloud.agent.api.to.NicTO)3 Commands (com.cloud.agent.manager.Commands)3