Merge pull request #15536 from ak503/bgp_bfd

bgpd: fix disable bfd profile for neighbors.
This commit is contained in:
Donatas Abraitis 2024-04-23 11:09:11 +03:00 committed by GitHub
commit bb7b0ff01f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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