summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-09-05 14:16:05 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-09-05 14:16:05 +0200
commitb9d4191a51a8965228f50f5100e5831eb1a5a894 (patch)
tree8b8560e8084e5420cddcca7825456e692b0e0dbb /bgpd/bgp_updgrp.c
parentMerge pull request #16743 from lsang6WIND/vpn_leak_label (diff)
downloadfrr-b9d4191a51a8965228f50f5100e5831eb1a5a894.tar.xz
frr-b9d4191a51a8965228f50f5100e5831eb1a5a894.zip
bgpd: Allow using `solo` for peer-groups
Inherit solo flag for peer-group members also. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_updgrp.c')
-rw-r--r--bgpd/bgp_updgrp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c
index b717793a4..115bc35cd 100644
--- a/bgpd/bgp_updgrp.c
+++ b/bgpd/bgp_updgrp.c
@@ -2016,6 +2016,8 @@ 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))