def build_ini_tgt_map(self, wwns, host_id, port_list, is_add):
    fabric_map = self.zm.get_san_context(port_list)
    nsinfos = {}
    cfgmap_from_fabrics = {}
    for fabric in fabric_map:
        nsinfos[fabric] = self._get_nameserver_info(fabric)
        cfgmap_from_fabric = self._get_active_zone_set(fabric)
        cfgmap_from_fabrics[fabric] = cfgmap_from_fabric
    self._check_fc_port_and_init(wwns, host_id, fabric_map, nsinfos)
    return self._build_ini_tgt_map(wwns, is_add, nsinfos, cfgmap_from_fabrics)
def build_ini_tgt_map(self, wwns, host_id, port_list, is_add):
    fabric_map = self.zm.get_san_context(port_list)
    nsinfos = {}
    cfgmap_from_fabrics = {}
    for fabric in fabric_map:
        nsinfos[fabric] = self._get_nameserver_info(fabric)
        cfgmap_from_fabric = self._get_active_zone_set(fabric)
        cfgmap_from_fabrics[fabric] = cfgmap_from_fabric
    self._check_fc_port_and_init(wwns, host_id, fabric_map, nsinfos)
    return self._build_ini_tgt_map(wwns, is_add, nsinfos, cfgmap_from_fabrics)