'Create a mapping between a volume to a host.'

def map_vol_to_host(self, volume_name, host_name, multihostmap):

    LOG.debug('Enter:    map_vol_to_host:    volume    %(volume_name)s    to    host    %(host_name)s.', {'volume_name': volume_name, 'host_name': host_name})
    result_lun = self.ssh.get_vdiskhostmapid(volume_name, host_name)
    if (result_lun is None):
        result_lun = self.ssh.mkvdiskhostmap(host_name, volume_name, None, multihostmap)
    LOG.debug('Leave:    map_vol_to_host:    LUN    %(result_lun)s,    volume    %(volume_name)s,    host    %(host_name)s.', {'result_lun': result_lun, 'volume_name': volume_name, 'host_name': host_name})
    return int(result_lun)
