2.17. test_flowperpkt module

class test_flowperpkt.TestFlowperpkt(methodName='runTest')

Bases: framework.VppTestCase

Flow-per-packet plugin: test both L2 and IP4 reporting

static compare_with_mask(payload, masked_expected_data)
create_stream(src_if, dst_if, packet_sizes)

Create a packet stream to tickle the plugin

Parameters:
  • src_if (VppInterface) – Source interface for packet stream
  • src_if – Dst interface for packet stream
  • packet_sizes (list) – Sizes to test
setUp()

Set up

Config:
  • create three PG interfaces
test_L3_fpp()

Flow per packet L3 test

verify_ipfix(collector_if)

Check the ipfix capture