'Enables or disables replicating the active replay for given vol.
:param scvolume: SC Volume object.
:param replactive: True or False
:return: True or False'

def update_replicate_active_replay(self, scvolume, replactive):

    r = self.client.get(('StorageCenter/ScVolume/%s/ReplicationSourceList' % self._get_id(scvolume)))
    if self._check_result(r):
        replications = self._get_json(r)
        for replication in replications:
            if (replication['replicateActiveReplay'] != replactive):
                payload = {'ReplicateActiveReplay': replactive}
                r = self.client.put(('StorageCenter/ScReplication/%s' % replication['instanceId']), payload, True)
                if (not self._check_result(r)):
                    return False
    return True
