Search in sources :

Example 1 with Hypervisors

use of com.woorea.openstack.nova.model.Hypervisors in project so by onap.

the class NovaClientImpl method getHypervisorDetails.

public Hypervisors getHypervisorDetails(String cloudSiteId, String tenantId) throws NovaClientException {
    Nova novaClient;
    try {
        novaClient = client.getNovaClient(cloudSiteId, tenantId);
        OpenStackRequest<Hypervisors> request = novaClient.hypervisors().listDetail();
        return executeAndRecordOpenstackRequest(request, false);
    } catch (MsoException e) {
        logger.error("Error building Nova Client", e);
        throw new NovaClientException("Error building Nova Client", e);
    }
}
Also used : Hypervisors(com.woorea.openstack.nova.model.Hypervisors) MsoException(org.onap.so.openstack.exceptions.MsoException) Nova(com.woorea.openstack.nova.Nova)

Aggregations

Nova (com.woorea.openstack.nova.Nova)1 Hypervisors (com.woorea.openstack.nova.model.Hypervisors)1 MsoException (org.onap.so.openstack.exceptions.MsoException)1