original_docstring: 
          Execute after _resolve_not_core() cannot resolve a new request, due to
          lack of corresponding down segment(s).
          This must not be executed for a pending request.
          
docstring: Execute after _resolve_not_core() cannot resolve a new request, due to
  lack of corresponding down segment(s).
  This must not be executed for a pending request.
docstring_tokens: Execute after _resolve_not_core () cannot resolve a new request due to lack of corresponding down segment ( s ) . This must not be executed for a pending request .
code: def _resolve_not_core_failed(self, seg_req, meta, dst_ia, flags):
          """
          Execute after _resolve_not_core() cannot resolve a new request, due to
          lack of corresponding down segment(s).
          This must not be executed for a pending request.
          """
          sibra = PATH_FLAG_SIBRA in flags
          self.pending_req[(dst_ia, sibra)].append((seg_req, meta))
          if dst_ia[0] == self.addr.isd_as[0]:
              # Master may know down segment as dst is in local ISD.
              self._query_master(dst_ia, flags=flags)
              return
  
          # Dst is in a remote ISD, ask any core AS from there. Don't use a SIBRA
          # segment, even if the request has the SIBRA flag set, as this is just
          # for basic internal communication.
          csegs = self.core_segments(
              first_isd=dst_ia[0], last_ia=self.addr.isd_as)
          if csegs:
              cseg = csegs[0]
              path = cseg.get_path(reverse_direction=True)
              dst_ia = cseg.first_ia()
              logging.info("Down-Segment request for different ISD, "
                           "forwarding request to CPS in %s via %s",
                           dst_ia, cseg.short_desc())
              meta = self.DefaultMeta.from_values(ia=dst_ia, path=path,
                                                  host=SVCType.PS_A)
              self.send_meta(seg_req, meta)
          else:
              # If no core segment was available, add request to waiting targets.
              logging.info("Waiting for core segment to ISD %s", dst_ia[0])
              self.waiting_targets[dst_ia[0]].append(seg_req)
              # Ask for any segment to dst_isd
              self._query_master(dst_ia.any_as())
code_tokens: def _resolve_not_core_failed ( self , seg_req , meta , dst_ia , flags ) : sibra = PATH_FLAG_SIBRA in flags self . pending_req [ ( dst_ia , sibra ) ] . append ( ( seg_req , meta ) ) if dst_ia [ 0 ] == self . addr . isd_as [ 0 ] : self . _query_master ( dst_ia , flags = flags ) return csegs = self . core_segments ( first_isd = dst_ia [ 0 ] , last_ia = self . addr . isd_as ) if csegs : cseg = csegs [ 0 ] path = cseg . get_path ( reverse_direction = True ) dst_ia = cseg . first_ia ( ) logging . info ( "Down-Segment request for different ISD, " "forwarding request to CPS in %s via %s" , dst_ia , cseg . short_desc ( ) ) meta = self . DefaultMeta . from_values ( ia = dst_ia , path = path , host = SVCType . PS_A ) self . send_meta ( seg_req , meta ) else : logging . info ( "Waiting for core segment to ISD %s" , dst_ia [ 0 ] ) self . waiting_targets [ dst_ia [ 0 ] ] . append ( seg_req ) self . _query_master ( dst_ia . any_as ( ) )
short_docstring: Execute after _resolve_not_core() cannot resolve a new request, due to
  lack of corresponding down segment(s).
short_docstring_tokens: Execute after _resolve_not_core () cannot resolve a new request due to lack of corresponding down segment ( s ) .
comment: """
          Execute after _resolve_not_core() cannot resolve a new request, due to
          lack of corresponding down segment(s).
          This must not be executed for a pending request.
          """$SEP$# Master may know down segment as dst is in local ISD.$SEP$# Dst is in a remote ISD, ask any core AS from there. Don't use a SIBRA$SEP$# segment, even if the request has the SIBRA flag set, as this is just$SEP$# for basic internal communication.$SEP$# If no core segment was available, add request to waiting targets.$SEP$# Ask for any segment to dst_isd