'Enables replication from current destination volume to source.
:param svolume: Current source. New destination.
:param dvolume: Current destination.  New source.
:param name: Volume name.
:param replicationtype: Sync or async
:param qosnode: qos node for the new source ssn.
:param activereplay: replicate the active replay.
:return: True/False.'

def flip_replication(self, svolume, dvolume, name, replicationtype, qosnode, activereplay):

    if self.delete_replication(svolume, dvolume['scSerialNumber'], False):
        if (self.start_replication(dvolume, svolume, replicationtype, qosnode, activereplay) is not None):
            if (self.rename_volume(svolume, self._repl_name(name)) and self.rename_volume(dvolume, name)):
                return True
    LOG.warning('flip_replication:    Unable    to    replicate    %(name)s    from    %(src)s    to    %(dst)s', {'name': name, 'src': dvolume['scSerialNumber'], 'dst': svolume['scSerialNumber']})
    return False
