bfdd: upon vrf disable, unlink bfd session with vrf

bfd session has a vrf pointer that needs to be reset, when vrf is
disabled.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
Philippe Guibert 2019-10-10 09:07:21 +02:00 committed by Rafael Zalamena
parent 13044b6f6f
commit c7666ae7a1

View File

@ -216,6 +216,7 @@ void bfd_session_disable(struct bfd_session *bs)
bfd_echo_recvtimer_delete(bs); bfd_echo_recvtimer_delete(bs);
bfd_xmttimer_delete(bs); bfd_xmttimer_delete(bs);
bfd_echo_xmttimer_delete(bs); bfd_echo_xmttimer_delete(bs);
bs->vrf = NULL;
} }
static uint32_t ptm_bfd_gen_ID(void) static uint32_t ptm_bfd_gen_ID(void)