Skip to content

Commit

Permalink
bgpd: fix disable bfd profile for neighbors.
Browse files Browse the repository at this point in the history
Before this patch after command
'no neighbor <A.B.C.D|X:X::X:X|WORD> bfd profile [BFDPROF]'
has always been created bfd-config for neighbor.

Signed-off-by: Dmitrii Turlupov <[email protected]>
  • Loading branch information
Dmitrii Turlupov committed Mar 12, 2024
1 parent dfa2776 commit 2573927
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgpd/bgp_bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ DEFUN(no_neighbor_bfd_profile, no_neighbor_bfd_profile_cmd,
if (!peer)
return CMD_WARNING_CONFIG_FAILED;

if (!peer->bfd_config)
return CMD_SUCCESS;

if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP))
bgp_group_configure_bfd(peer);
else
Expand Down

0 comments on commit 2573927

Please sign in to comment.