'Failover host to the specified backend_id (secondary).'

def failover(self, ctxt, service, secondary_backend_id=None):

    version = '3.8'
    method = 'failover'
    if (not self.client.can_send_version(version)):
        version = '3.0'
        method = 'failover_host'
    cctxt = self._get_cctxt(service.service_topic_queue, version)
    cctxt.cast(ctxt, method, secondary_backend_id=secondary_backend_id)
