Skip to content

Commit

Permalink
bgpd: Fix bgp peer solo option
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Skorichenko <[email protected]>
  • Loading branch information
askorichenko committed Jan 23, 2025
1 parent 4a2612c commit 575777f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bgpd/bgp_updgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 575777f

Please sign in to comment.