2.46. 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.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()
classmethod setUpClass()
test_lisp_basic_encap()

Test case for basic encapsulation