'Build the target_wwns and the initiator target map.'

def _build_initiator_target_map_fc(self, connector):

    all_target_wwpns = self._client.list_target_wwpns()
    all_target_wwpns = [six.text_type(wwpn).replace(':', '') for wwpn in all_target_wwpns]
    target_wwpns = []
    init_targ_map = {}
    num_paths = 0
    if self.lookup_service:
        dev_map = self.lookup_service.get_device_mapping_from_network(connector['wwpns'], all_target_wwpns)
        for fabric_name in dev_map:
            fabric = dev_map[fabric_name]
            target_wwpns += fabric['target_port_wwn_list']
            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]))
                for target in init_targ_map[initiator]:
                    num_paths += 1
        target_wwpns = list(set(target_wwpns))
    else:
        initiator_wwns = connector['wwpns']
        target_wwpns = all_target_wwpns
        for initiator in initiator_wwns:
            init_targ_map[initiator] = target_wwpns
    return (target_wwpns, init_targ_map, num_paths)
