2.44. test_gre module

class test_gre.TestGRE(methodName='runTest')

Bases: framework.VppTestCase

GRE Test Case

create_stream_ip4(src_if, src_ip, dst_ip, dscp=0, ecn=0)
create_stream_ip6(src_if, src_ip, dst_ip, dscp=0, ecn=0)
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

classmethod tearDownClass()

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

test_gre()

GRE IPv4 tunnel Tests

test_gre6()

GRE IPv6 tunnel Tests

test_gre_l2()

GRE tunnel L2 Tests

test_gre_loop()

GRE tunnel loop Tests

test_gre_vrf()

GRE tunnel VRF Tests

test_mgre()

mGRE IPv4 tunnel Tests

test_mgre6()

mGRE IPv6 tunnel Tests

verify_decapped_4o4(src_if, capture, sent)
verify_decapped_6o4(src_if, capture, sent)
verify_decapped_6o6(src_if, capture, sent)
verify_tunneled_4o4(src_if, capture, sent, tunnel_src, tunnel_dst, dscp=0, ecn=0)
verify_tunneled_4o6(src_if, capture, sent, tunnel_src, tunnel_dst)
verify_tunneled_6o4(src_if, capture, sent, tunnel_src, tunnel_dst)
verify_tunneled_6o6(src_if, capture, sent, tunnel_src, tunnel_dst, dscp=0, ecn=0)
verify_tunneled_l2o4(src_if, capture, sent, tunnel_src, tunnel_dst)
verify_tunneled_vlano4(src_if, capture, sent, tunnel_src, tunnel_dst, vlan)
class test_gre.TestGREInputNodes(methodName='runTest')

Bases: framework.VppTestCase

GRE Input Nodes Test Case

setUp()

Clear trace before running each test

tearDown()

Show various debug prints after each test

test_gre_input_node()

GRE gre input nodes not registerd unless configured