summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp.c
diff options
context:
space:
mode:
authorAlexander Skorichenko <askorichenko@netgate.com>2025-01-23 12:14:41 +0100
committerAlexander Skorichenko <askorichenko@netgate.com>2025-01-23 14:48:16 +0100
commit7bda2b36a9f2ef9abe8619eeb4432c8f3507e3ec (patch)
tree0c909a6860b3d4132cddea268f3904704d6fd8af /bgpd/bgp_updgrp.c
parentMerge pull request #17904 from louis-6wind/fix-bfd-pg-update-group (diff)
downloadfrr-7bda2b36a9f2ef9abe8619eeb4432c8f3507e3ec.tar.xz
frr-7bda2b36a9f2ef9abe8619eeb4432c8f3507e3ec.zip
bgpd: Fix bgp peer solo option
Signed-off-by: Alexander Skorichenko <askorichenko@netgate.com>
Diffstat (limited to 'bgpd/bgp_updgrp.c')
-rw-r--r--bgpd/bgp_updgrp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c
index 35ddfc34f..c6b1ff1d2 100644
--- a/bgpd/bgp_updgrp.c
+++ b/bgpd/bgp_updgrp.c
@@ -2037,13 +2037,16 @@ int update_group_adjust_soloness(struct peer *peer, int set)
struct peer_group *group;
struct listnode *node, *nnode;
- peer_flag_set(peer, PEER_FLAG_LONESOUL);
-
if (!CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP)) {
peer_lonesoul_or_not(peer, set);
if (peer_established(peer->connection))
bgp_announce_route_all(peer);
} else {
+ if (set)
+ peer_flag_set(peer, PEER_FLAG_LONESOUL);
+ else
+ peer_flag_unset(peer, PEER_FLAG_LONESOUL);
+
group = peer->group;
for (ALL_LIST_ELEMENTS(group->peer, node, nnode, peer)) {
peer_lonesoul_or_not(peer, set);