MCPcopy Create free account
hub / github.com/FDio/vpp / bfd_session_down

Function bfd_session_down

test/test_bfd.py:915–929  ·  view source on GitHub ↗

Bring BFD session down

(test)

Source from the content-addressed store, hash-verified

913
914
915def bfd_session_down(test):
916 """Bring BFD session down"""
917 test.assert_equal(test.vpp_session.state, BFDState.up, BFDState)
918 test.test_session.update(state=BFDState.down)
919 if (
920 test.test_session.sha1_key
921 and test.test_session.sha1_key.auth_type == BFDAuthType.meticulous_keyed_sha1
922 ):
923 test.test_session.inc_seq_num()
924 test.test_session.send_packet()
925 test.logger.info("BFD: Waiting for event")
926 e = test.vapi.wait_for_event(1, "bfd_udp_session_event")
927 verify_event(test, e, expected_state=BFDState.down)
928 test.logger.info("BFD: Session is Down")
929 test.assert_equal(test.vpp_session.state, BFDState.down, BFDState)
930
931
932def verify_bfd_session_config(test, session, state=None):

Callers 5

test_session_downMethod · 0.85
test_session_with_fibMethod · 0.85
test_bfd_o_greMethod · 0.85
test_set_del_sha1_keyMethod · 0.85

Calls 6

verify_eventFunction · 0.85
inc_seq_numMethod · 0.80
wait_for_eventMethod · 0.80
assert_equalMethod · 0.45
updateMethod · 0.45
send_packetMethod · 0.45

Tested by

no test coverage detected