'Gets the cg volume list and maps/unmaps the non active volumes.
:param profileid: Replay profile identifier.
:return: Nothing'

def _init_cg_volumes(self, profileid):

    r = self.client.get(('StorageCenter/ScReplayProfile/%s/VolumeList' % profileid))
    if self._check_result(r):
        vols = self._get_json(r)
        for vol in vols:
            if ((vol.get('active') is not True) or (vol.get('replayAllowed') is not True)):
                self._init_volume(vol)
