'Check if a snap has any links before deletion.
If a snapshot has any links, break the replication relationship
before deletion.
:param array: the array serial number
:param snap_name: the snapshot name
:param source_device: the source device id
:param extra_specs: the extra specifications'

def delete_volume_snap_check_for_links(self, array, snap_name, source_device, extra_specs):

    LOG.debug('Check    for    linked    devices    to    SnapVx:    %(snap_name)s    for    volume    %(vol)s.', {'vol': source_device, 'snap_name': snap_name})
    linked_list = self.rest.get_snap_linked_device_list(array, source_device, snap_name)
    for link in linked_list:
        target_device = link['targetDevice']
        self.break_replication_relationship(array, target_device, source_device, snap_name, extra_specs)
    self.delete_volume_snap(array, snap_name, source_device)
