test_bfd module

class test_bfd.BFDAPITestCase(methodName='runTest')

Bases: framework.VppTestCase

Bidirectional Forwarding Detection (BFD) - API

classmethod setUpClass()
test_add_bfd()

create a BFD session

test_double_add()

create the same BFD session twice (negative case)

class test_bfd.BFDTestCase(methodName='runTest')

Bases: framework.VppTestCase

Bidirectional Forwarding Detection (BFD)

bfd_session_up()
setUp()
classmethod setUpClass()
tearDown()
test_conn_down()

verify session goes down after inactivity

test_hold_up()

hold BFD session up

test_large_required_min_rx()

large remote RequiredMinRxInterval

test_session_up()

bring BFD session up

test_slow_timer()

verify slow periodic control frames while session down

test_zero_remote_min_rx()

no packets when zero BFD RemoteMinRxInterval

verify_event(event, expected_state)

Verify correctness of event values.

wait_for_bfd_packet(timeout=1)
class test_bfd.BFDTestSession(test, interface, detect_mult=3)

Bases: object

create_packet()
send_packet()
update(**kwargs)
verify_packet(packet)

Verify correctness of BFD layer.

test_bfd.create_packet(interface, ttl=255, src_port=50000, **kwargs)
test_bfd.verify_ip(test, packet, local_ip, remote_ip)

Verify correctness of IP layer.

test_bfd.verify_udp(test, packet)

Verify correctness of UDP layer.