original_docstring: Verify captured input packet stream for defined interface.
  
          :param VppInterface dst_if: Interface to verify captured packet stream.
          :param list capture: Captured packet stream.
          :param Scapy proto_l: Required IP protocol. Default protocol is UDP.
          
docstring: Verify captured input packet stream for defined interface.
docstring_tokens: Verify captured input packet stream for defined interface .
code: def verify_capture(self, dst_if, capture, proto_l=UDP):
          """Verify captured input packet stream for defined interface.
  
          :param VppInterface dst_if: Interface to verify captured packet stream.
          :param list capture: Captured packet stream.
          :param Scapy proto_l: Required IP protocol. Default protocol is UDP.
          """
          ip_proto = IP
          if self.af == AF_INET6:
              ip_proto = IPv6
          self.logger.info("Verifying capture on interface %s" % dst_if.name)
          last_info = dict()
          for i in self.interfaces:
              last_info[i.sw_if_index] = None
          dst_sw_if_index = dst_if.sw_if_index
          for packet in capture:
              try:
                  ip_received = packet[ip_proto]
                  proto_received = packet[proto_l]
                  payload_info = self.payload_to_info(packet[Raw])
                  packet_index = payload_info.index
                  self.assertEqual(payload_info.dst, dst_sw_if_index)
                  self.logger.debug(
                      "Got packet on port %s: src=%u (id=%u)" %
                      (dst_if.name, payload_info.src, packet_index))
                  next_info = self.get_next_packet_info_for_interface2(
                      payload_info.src, dst_sw_if_index,
                      last_info[payload_info.src])
                  last_info[payload_info.src] = next_info
                  self.assertTrue(next_info is not None)
                  self.assertEqual(packet_index, next_info.index)
                  saved_packet = next_info.data
                  ip_saved = saved_packet[ip_proto]
                  proto_saved = saved_packet[proto_l]
                  # Check standard fields
                  self.assertEqual(ip_received.src, ip_saved.src)
                  self.assertEqual(ip_received.dst, ip_saved.dst)
                  self.assertEqual(proto_received.sport, proto_saved.sport)
                  self.assertEqual(proto_received.dport, proto_saved.dport)
              except BaseException:
                  self.logger.error(ppp("Unexpected or invalid packet:", packet))
                  raise
          for i in self.interfaces:
              remaining_packet = self.get_next_packet_info_for_interface2(
                  i.sw_if_index, dst_sw_if_index, last_info[i.sw_if_index])
              self.assertTrue(remaining_packet is None,
                              "Interface %s: Packet expected from interface %s "
                              "didn't arrive" % (dst_if.name, i.name))
code_tokens: def verify_capture ( self , dst_if , capture , proto_l = UDP ) : ip_proto = IP if self . af == AF_INET6 : ip_proto = IPv6 self . logger . info ( "Verifying capture on interface %s" % dst_if . name ) last_info = dict ( ) for i in self . interfaces : last_info [ i . sw_if_index ] = None dst_sw_if_index = dst_if . sw_if_index for packet in capture : try : ip_received = packet [ ip_proto ] proto_received = packet [ proto_l ] payload_info = self . payload_to_info ( packet [ Raw ] ) packet_index = payload_info . index self . assertEqual ( payload_info . dst , dst_sw_if_index ) self . logger . debug ( "Got packet on port %s: src=%u (id=%u)" % ( dst_if . name , payload_info . src , packet_index ) ) next_info = self . get_next_packet_info_for_interface2 ( payload_info . src , dst_sw_if_index , last_info [ payload_info . src ] ) last_info [ payload_info . src ] = next_info self . assertTrue ( next_info is not None ) self . assertEqual ( packet_index , next_info . index ) saved_packet = next_info . data ip_saved = saved_packet [ ip_proto ] proto_saved = saved_packet [ proto_l ] self . assertEqual ( ip_received . src , ip_saved . src ) self . assertEqual ( ip_received . dst , ip_saved . dst ) self . assertEqual ( proto_received . sport , proto_saved . sport ) self . assertEqual ( proto_received . dport , proto_saved . dport ) except BaseException : self . logger . error ( ppp ( "Unexpected or invalid packet:" , packet ) ) raise for i in self . interfaces : remaining_packet = self . get_next_packet_info_for_interface2 ( i . sw_if_index , dst_sw_if_index , last_info [ i . sw_if_index ] ) self . assertTrue ( remaining_packet is None , "Interface %s: Packet expected from interface %s " "didn't arrive" % ( dst_if . name , i . name ) )
short_docstring: Verify captured input packet stream for defined interface.
short_docstring_tokens: Verify captured input packet stream for defined interface .
comment: """Verify captured input packet stream for defined interface.
  
          :param VppInterface dst_if: Interface to verify captured packet stream.
          :param list capture: Captured packet stream.
          :param Scapy proto_l: Required IP protocol. Default protocol is UDP.
          """$SEP$# Check standard fields