'Build the target_wwns and the initiator target map.'

def _build_initiator_target_map(self, target_wwns, connector):

    LOG.debug('_build_initiator_target_map    for    %(wwns)s', {'wwns': target_wwns})
    init_targ_map = {}
    if self._lookup_service:
        dev_map = self._lookup_service.get_device_mapping_from_network(connector['wwpns'], target_wwns)
        map_fabric = dev_map
        LOG.info('dev_map    =%(fabric)s', {'fabric': map_fabric})
        for fabric_name in dev_map:
            fabric = dev_map[fabric_name]
            for initiator in fabric['initiator_port_wwn_list']:
                if (initiator not in init_targ_map):
                    init_targ_map[initiator] = []
                init_targ_map[initiator] += fabric['target_port_wwn_list']
                init_targ_map[initiator] = list(set(init_targ_map[initiator]))
    else:
        init_targ_map = dict.fromkeys(connector['wwpns'], target_wwns)
    return init_targ_map
