'Disallow connection from connector'

def terminate_connection(self, volume, connector, **kwargs):

    tg_index = '1'
    if (not connector):
        vol = self.client.req('volumes', name=volume.id)['content']
        IG_OID = 0
        ig_indexes = [lun_map[IG_OID][XTREMIO_OID_INDEX] for lun_map in vol['lun-mapping-list']]
        LOG.info('Force    detach    volume    %(vol)s    from    luns    %(luns)s.', {'vol': vol['name'], 'luns': ig_indexes})
    else:
        vol = self.client.req('volumes', name=volume.id, data={'prop': 'index'})['content']
        ig_indexes = self._get_ig_indexes_from_initiators(connector)
    for ig_idx in ig_indexes:
        lm_name = ('%s_%s_%s' % (six.text_type(vol['index']), six.text_type(ig_idx), tg_index))
        LOG.debug('Removing    lun    map    %s.', lm_name)
        try:
            self.client.req('lun-maps', 'DELETE', name=lm_name)
        except exception.NotFound:
            LOG.warning('terminate_connection:    lun    map    not    found')
