From: Donatas Abraitis Date: Thu, 27 Jun 2024 19:46:58 +0000 (+0300) Subject: bgpd: Ignore RFC8212 for BGP Confederations X-Git-Tag: docker/9.1.2~15^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b76885e008e2a2036485664108edb28ad5f42fad;p=mirror%2Ffrr.git bgpd: Ignore RFC8212 for BGP Confederations RFC 8212 should be restricted for eBGP peers. Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 0a0289ac36..a60ba6a3e2 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5969,7 +5969,7 @@ void bgp_set_stale_route(struct peer *peer, afi_t afi, safi_t safi) bool bgp_outbound_policy_exists(struct peer *peer, struct bgp_filter *filter) { - if (peer->sort == BGP_PEER_IBGP) + if (peer->sort == BGP_PEER_CONFED || peer->sort == BGP_PEER_IBGP) return true; if (peer->sort == BGP_PEER_EBGP && @@ -5982,7 +5982,7 @@ bool bgp_outbound_policy_exists(struct peer *peer, struct bgp_filter *filter) bool bgp_inbound_policy_exists(struct peer *peer, struct bgp_filter *filter) { - if (peer->sort == BGP_PEER_IBGP) + if (peer->sort == BGP_PEER_CONFED || peer->sort == BGP_PEER_IBGP) return true; if (peer->sort == BGP_PEER_EBGP