yardstick.vTC.apexlake.experimental_framework.packet_generators package

Submodules

yardstick.vTC.apexlake.experimental_framework.packet_generators.base_packet_generator module

class yardstick.vTC.apexlake.experimental_framework.packet_generators.base_packet_generator.BasePacketGenerator[source]
send_traffic()[source]

Starts the traffic generation. According to the specific packet generator it requires prior initialization :return: None

yardstick.vTC.apexlake.experimental_framework.packet_generators.dpdk_packet_generator module

class yardstick.vTC.apexlake.experimental_framework.packet_generators.dpdk_packet_generator.DpdkPacketGenerator[source]

Bases: yardstick.vTC.apexlake.experimental_framework.packet_generators.base_packet_generator.BasePacketGenerator

init_dpdk_pktgen(dpdk_interfaces, lua_script='generic_test.lua', pcap_file_0='', pcap_file_1='', vlan_0='', vlan_1='')[source]

Initializes internal parameters and configuration of the module. Needs to be called before the send_traffic :param dpdk_interfaces: Number of interfaces to be used (type: int) :param lua_script: Full path of the Lua script to be used (type: str) :param pcap_file_0: Full path of the Pcap file to be used for port 0

(type: str)
Parameters:
  • pcap_file_1 – Full path of the Pcap file to be used for port 1 (type: str)
  • vlan_0 – VLAN tag to be used for port 0 (type: str)
  • vlan_1 – VLAN tag to be used for port 1 (type: str)
Returns:

send_traffic()[source]

Calls the packet generator and starts to send traffic Blocking call

Module contents

Packet generators