'Disable replication on the given volume.'

@pure_driver_debug_trace
def _disable_replication(self, volume):

    current_array = self._get_current_array()
    LOG.debug('Disabling    replication    for    volume    %(id)s    residing    on    array    %(backend_id)s.', {'id': volume['id'], 'backend_id': current_array._backend_id})
    try:
        current_array.set_pgroup(self._replication_pg_name, remvollist=[self._get_vol_name(volume)])
    except purestorage.PureHTTPError as err:
        with excutils.save_and_reraise_exception() as ctxt:
            if ((err.code == 400) and (ERR_MSG_COULD_NOT_BE_FOUND in err.text)):
                ctxt.reraise = False
                LOG.warning('Disable    replication    on    volume    failed:    already    disabled:    %s', err.text)
            else:
                LOG.error('Disable    replication    on    volume    failed    with    message:    %s', err.text)
