2.78. test_l2bd_learnlimit_enabled module

class test_l2bd_learnlimit_enabled.TestL2LearnLimit(methodName='runTest')

Bases: framework.VppTestCase

L2 Global Learn limit Test Case

create_hosts(pg_if, n_hosts_per_if, subnet)

Create required number of host MAC addresses and distribute them among interfaces. Create host IPv4 address for every host MAC address.

Parameters

n_hosts_per_if (int) – Number of per interface hosts to create MAC/IPv4 addresses for.

learn_hosts(pg_if, bd_id, hosts)

Create and send per interface L2 MAC broadcast packet stream to let the bridge domain learn these MAC addresses.

Parameters
  • bd_id (int) – BD to teach

  • hosts (dict) – dict of hosts per interface

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_l2bd_learnlimit01()

L2BD test with learn Limit