From a8978583036b9b8d93af22d3cf4409a10a43c8b7 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 8 Nov 2023 15:29:32 +0200 Subject: [PATCH] bgpd: Send software version capability for OAD EBGP peers We send this capability for iBGP peers by default. Recently OAD support was merged, and we should adopt sending the capability according to OAD as well. Signed-off-by: Donatas Abraitis (cherry picked from commit 89e6b4f390c96083c9404de94ba9fb96f4bc61b1) --- bgpd/bgp_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index b030c455bcb2..9946c84e2606 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -1930,7 +1930,7 @@ uint16_t bgp_open_capability(struct stream *s, struct peer *peer, */ if (peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_SOFT_VERSION) || CHECK_FLAG(peer->bgp->flags, BGP_FLAG_SOFT_VERSION_CAPABILITY) || - peer->sort == BGP_PEER_IBGP) { + peer->sort == BGP_PEER_IBGP || peer->sub_sort == BGP_PEER_EBGP_OAD) { SET_FLAG(peer->cap, PEER_CAP_SOFT_VERSION_ADV); stream_putc(s, BGP_OPEN_OPT_CAP); rcapp = stream_get_endp(s);