'Create repl from scvol to destssn.
:param scvolume: Dell SC volume object.
:param destssn: Destination SSN string.
:param qosnode: Name of Dell SC QOS Node for this replication.
:param synchronous: Boolean.
:param diskfolder: optional disk folder name.
:param replicate_active: replicate active replay.
:return: Dell SC replication object.'

def create_replication(self, scvolume, destssn, qosnode, synchronous, diskfolder, replicate_active):

    screpl = None
    ssn = self.find_sc(int(destssn))
    payload = {}
    payload['DestinationStorageCenter'] = ssn
    payload['QosNode'] = self._get_id(self._find_qos(qosnode))
    payload['SourceVolume'] = self._get_id(scvolume)
    payload['StorageCenter'] = self.find_sc()
    payload['ReplicateActiveReplay'] = (replicate_active or synchronous)
    if synchronous:
        payload['Type'] = 'Synchronous'
        payload['SyncMode'] = 'HighAvailability'
    else:
        payload['Type'] = 'Asynchronous'
    destinationvolumeattributes = {}
    destinationvolumeattributes['CreateSourceVolumeFolderPath'] = True
    destinationvolumeattributes['Notes'] = self.notes
    destinationvolumeattributes['Name'] = self._repl_name(scvolume['name'])
    df = self._get_disk_folder(destssn, diskfolder)
    if df:
        destinationvolumeattributes['DiskFolder'] = self._get_id(df)
    payload['DestinationVolumeAttributes'] = destinationvolumeattributes
    r = self.client.post('StorageCenter/ScReplication', payload, True)
    if self._check_result(r):
        LOG.info('Replication    created    for    %(volname)s    to    %(destsc)s', {'volname': scvolume.get('name'), 'destsc': destssn})
        screpl = self._get_json(r)
    if (not screpl):
        LOG.error('Unable    to    replicate    %(volname)s    to    %(destsc)s', {'volname': scvolume.get('name'), 'destsc': destssn})
    return screpl
