Bring BFD session down
(test)
| 913 | |
| 914 | |
| 915 | def 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 | |
| 932 | def verify_bfd_session_config(test, session, state=None): |
no test coverage detected