mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
bgpd: fix disable bfd profile for neighbors.
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 <turlupov@zts.ru>
This commit is contained in:
parent
dfa27764a2
commit
25739271a0
@ -597,6 +597,9 @@ DEFUN(no_neighbor_bfd_profile, no_neighbor_bfd_profile_cmd,
|
|||||||
if (!peer)
|
if (!peer)
|
||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
|
|
||||||
|
if (!peer->bfd_config)
|
||||||
|
return CMD_SUCCESS;
|
||||||
|
|
||||||
if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP))
|
if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP))
|
||||||
bgp_group_configure_bfd(peer);
|
bgp_group_configure_bfd(peer);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user