2.70. test_p2p_ethernet module

class test_p2p_ethernet.P2PEthernetAPI(methodName='runTest')

Bases: framework.VppTestCase

P2P Ethernet tests

create_p2p_ethernet(parent_if, sub_id, remote_mac)
delete_p2p_ethernet(parent_if, remote_mac)
p2p_sub_ifs = []
classmethod setUpClass()

Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api

classmethod tearDownClass()

Perform final cleanup after running all tests in this test-case

test_api()

delete/create p2p subif

test_p2p_subif_creation_1k()

create 1k of p2p subifs

class test_p2p_ethernet.P2PEthernetIPV4(methodName='runTest')

Bases: framework.VppTestCase

P2P Ethernet IPv4 tests

create_p2p_ethernet(parent_if, sub_id, remote_mac)
create_stream(src_mac=None, dst_mac=None, src_ip=None, dst_ip=None, size=None)
delete_p2p_ethernet(p2p)
p2p_sub_ifs = []
packets = []
send_packets(src_if=None, dst_if=None, packets=None, count=None)
setUp()

Clear trace before running each test

classmethod setUpClass()

Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api

tearDown()

Show various debug prints after each test

classmethod tearDownClass()

Perform final cleanup after running all tests in this test-case

test_ip4_rx_p2p_subif()

receive ipv4 packet via p2p subinterface

test_ip4_rx_p2p_subif_route()

route rx packet not matching p2p subinterface

test_ip4_tx_p2p_subif()

send ip4 packet via p2p subinterface

test_ip4_tx_p2p_subif_drop()

drop tx ip4 packet not matching p2p subinterface

class test_p2p_ethernet.P2PEthernetIPV6(methodName='runTest')

Bases: framework.VppTestCase

P2P Ethernet IPv6 tests

create_p2p_ethernet(parent_if, sub_id, remote_mac)
create_stream(src_mac=None, dst_mac=None, src_ip=None, dst_ip=None, size=None)
delete_p2p_ethernet(p2p)
p2p_sub_ifs = []
packets = []
send_packets(src_if=None, dst_if=None, packets=None, count=None)
setUp()

Clear trace before running each test

classmethod setUpClass()

Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api

tearDown()

Show various debug prints after each test

classmethod tearDownClass()

Perform final cleanup after running all tests in this test-case

test_ip6_rx_p2p_subif()

receive ipv6 packet via p2p subinterface

test_ip6_rx_p2p_subif_drop()

drop rx packet not matching p2p subinterface

test_ip6_rx_p2p_subif_route()

route rx ip6 packet not matching p2p subinterface

test_ip6_tx_p2p_subif()

send packet via p2p subinterface

test_ip6_tx_p2p_subif_drop()

drop tx ip6 packet not matching p2p subinterface

test_no_p2p_subif()

standard routing without p2p subinterfaces