'Build the target_wwns and the initiator target map.
:param volume: the cinder volume object
:param connector: the connector object
:returns: target_wwns -- list, init_targ_map -- dict'

def _build_initiator_target_map(self, volume, connector):

    (target_wwns, init_targ_map) = ([], {})
    initiator_wwns = connector['wwpns']
    fc_targets = self.common.get_target_wwns_from_masking_view(volume, connector)
    if self.zonemanager_lookup_service:
        mapping = self.zonemanager_lookup_service.get_device_mapping_from_network(initiator_wwns, fc_targets)
        for entry in mapping:
            map_d = mapping[entry]
            target_wwns.extend(map_d['target_port_wwn_list'])
            for initiator in map_d['initiator_port_wwn_list']:
                init_targ_map[initiator] = map_d['target_port_wwn_list']
    else:
        target_wwns = fc_targets
        for initiator in initiator_wwns:
            init_targ_map[initiator] = target_wwns
    return (list(set(target_wwns)), init_targ_map)
