Skip to content

Commit

Permalink
bgpd: Send software version capability for OAD EBGP peers
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 89e6b4f)
  • Loading branch information
ton31337 authored and mergify[bot] committed Nov 9, 2023
1 parent 591908a commit a897858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a897858

Please sign in to comment.