original_docstring: Create input packet stream for defined interfaces.
  
          :param VppInterface src_if: Source Interface for packet stream.
          :param VppInterface dst_if: Destination Interface for packet stream.
          :param list packet_sizes: packet size to test.
          :param Scapy proto_l: Required IP protocol. Default protocol is UDP.
          
docstring: Create input packet stream for defined interfaces.
docstring_tokens: Create input packet stream for defined interfaces .
code: def create_stream(self, src_if, dst_if, packet_sizes,
                        proto_l=UDP(sport=1234, dport=5678),
                        payload_ex=None):
          """Create input packet stream for defined interfaces.
  
          :param VppInterface src_if: Source Interface for packet stream.
          :param VppInterface dst_if: Destination Interface for packet stream.
          :param list packet_sizes: packet size to test.
          :param Scapy proto_l: Required IP protocol. Default protocol is UDP.
          """
          pkts = []
  
          for size in packet_sizes:
              info = self.create_packet_info(src_if, dst_if)
              payload = self.info_to_payload(info)
  
              # append any additional payload after info
              if payload_ex is not None:
                  payload += payload_ex
  
              if self.af == AF_INET:
                  p = (Ether(dst=src_if.local_mac, src=src_if.remote_mac) /
                       IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4) /
                       proto_l /
                       Raw(payload))
              elif self.af == AF_INET6:
                  p = (Ether(dst=src_if.local_mac, src=src_if.remote_mac) /
                       IPv6(src=src_if.remote_ip6, dst=dst_if.remote_ip6) /
                       proto_l /
                       Raw(payload))
              info.data = p.copy()
              self.extend_packet(p, size)
              pkts.append(p)
          return pkts
code_tokens: def create_stream ( self , src_if , dst_if , packet_sizes , proto_l = UDP ( sport = 1234 , dport = 5678 ) , payload_ex = None ) : pkts = [ ] for size in packet_sizes : info = self . create_packet_info ( src_if , dst_if ) payload = self . info_to_payload ( info ) if payload_ex is not None : payload += payload_ex if self . af == AF_INET : p = ( Ether ( dst = src_if . local_mac , src = src_if . remote_mac ) / IP ( src = src_if . remote_ip4 , dst = dst_if . remote_ip4 ) / proto_l / Raw ( payload ) ) elif self . af == AF_INET6 : p = ( Ether ( dst = src_if . local_mac , src = src_if . remote_mac ) / IPv6 ( src = src_if . remote_ip6 , dst = dst_if . remote_ip6 ) / proto_l / Raw ( payload ) ) info . data = p . copy ( ) self . extend_packet ( p , size ) pkts . append ( p ) return pkts
short_docstring: Create input packet stream for defined interfaces.
short_docstring_tokens: Create input packet stream for defined interfaces .
comment: """Create input packet stream for defined interfaces.
  
          :param VppInterface src_if: Source Interface for packet stream.
          :param VppInterface dst_if: Destination Interface for packet stream.
          :param list packet_sizes: packet size to test.
          :param Scapy proto_l: Required IP protocol. Default protocol is UDP.
          """$SEP$# append any additional payload after info