'Moves a map from one host/host_group object to another.'

def move_volume_mapping_via_symbol(self, map_ref, to_ref, lun_id):

    path = '/storage-systems/{system-id}/symbol/moveLUNMapping'
    data = {'lunMappingRef': map_ref, 'lun': int(lun_id), 'mapRef': to_ref}
    return_code = self._invoke('POST', path, data)
    if (return_code == 'ok'):
        return {'lun': lun_id}
    msg = (_('Failed    to    move    LUN    mapping.        Return    code:    %s') % return_code)
    raise exception.NetAppDriverException(msg)
