2.63. test_lisp module

class test_lisp.Driver(test, test_cases)

Bases: object

config_order = ['locator-sets', 'locators', 'local-mappings', 'remote-mappings', 'adjacencies']

Basic class for data driven testing

create_packet(src_if, dst_if, deid, payload='')

Create IPv4 packet

param: src_if param: dst_if

run()

testing procedure

test
test_cases
class test_lisp.LISP_GPE_Header(*args, **kwargs)

Bases: scapy.packet.Packet

fields_desc = [scapy.fields.FlagsField, scapy.fields.BitField, scapy.fields.ByteField, scapy.fields.IntField]
name = 'LISP GPE Header'
class test_lisp.SimpleDriver(test, test_cases)

Bases: test_lisp.Driver

Implements simple test procedure

configure_tc(tc)
run(dest)

Send traffic for each test case and verify that it is encapsulated

verify_capture(src_loc, dst_loc, capture)

Verify captured packet

Parameters
  • src_loc – source locator address

  • dst_loc – destination locator address

  • capture – list of captured packets

class test_lisp.TestLisp(methodName='runTest')

Bases: framework.VppTestCase

Basic LISP test

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

classmethod tearDownClass()

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

test_lisp_basic_encap()

Test case for basic encapsulation