def _check_compatible_with_source_hypervisor(self, destination):
    source_info = self._get_compute_info(self.source)
    destination_info = self._get_compute_info(destination)
    source_type = source_info['hypervisor_type']
    destination_type = destination_info['hypervisor_type']
    if (source_type != destination_type):
        raise exception.InvalidHypervisorType()
    source_version = source_info['hypervisor_version']
    destination_version = destination_info['hypervisor_version']
    if (source_version > destination_version):
        raise exception.DestinationHypervisorTooOld()
def _check_compatible_with_source_hypervisor(self, destination):
    source_info = self._get_compute_info(self.source)
    destination_info = self._get_compute_info(destination)
    source_type = source_info['hypervisor_type']
    destination_type = destination_info['hypervisor_type']
    if (source_type != destination_type):
        raise exception.InvalidHypervisorType()
    source_version = source_info['hypervisor_version']
    destination_version = destination_info['hypervisor_version']
    if (source_version > destination_version):
        raise exception.DestinationHypervisorTooOld()