2.35. test_gre module

class test_gre.GreTunnelTypes
TT_ERSPAN = 2
TT_L3 = 0
TT_TEB = 1
class test_gre.TestGRE(methodName='runTest')

Bases: framework.VppTestCase

GRE Test Case

create_stream_ip4(src_if, src_ip, dst_ip)
create_stream_ip6(src_if, src_ip, dst_ip)
create_tunnel_stream_4o4(src_if, tunnel_src, tunnel_dst, src_ip, dst_ip)
create_tunnel_stream_6o4(src_if, tunnel_src, tunnel_dst, src_ip, dst_ip)
create_tunnel_stream_6o6(src_if, tunnel_src, tunnel_dst, src_ip, dst_ip)
create_tunnel_stream_l2o4(src_if, tunnel_src, tunnel_dst)
create_tunnel_stream_vlano4(src_if, tunnel_src, tunnel_dst, vlan)
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

test_gre()

GRE IPv4 tunnel Tests

test_gre6()

GRE IPv6 tunnel Tests

test_gre_l2()

GRE tunnel L2 Tests

test_gre_vrf()

GRE tunnel VRF Tests

verify_decapped_4o4(src_if, capture, sent)
verify_decapped_6o4(src_if, capture, sent)
verify_tunneled_4o4(src_if, capture, sent, tunnel_src, tunnel_dst)
verify_tunneled_6o6(src_if, capture, sent, tunnel_src, tunnel_dst)
verify_tunneled_l2o4(src_if, capture, sent, tunnel_src, tunnel_dst)
verify_tunneled_vlano4(src_if, capture, sent, tunnel_src, tunnel_dst, vlan)