Skip to content

Commit

Permalink
Merge pull request #16289 from FRRouting/mergify/bp/dev/10.1/pr-16273
Browse files Browse the repository at this point in the history
bgpd: Relax OAD (One-Administration-Domain) for RFC8212 (backport #16273)
  • Loading branch information
riw777 authored Jun 25, 2024
2 parents 48b0d33 + 26fd1f8 commit b43bf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -6342,7 +6342,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_IBGP || peer->sub_sort == BGP_PEER_EBGP_OAD)
return true;

if (peer->sort == BGP_PEER_EBGP &&
Expand All @@ -6355,7 +6355,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_IBGP || peer->sub_sort == BGP_PEER_EBGP_OAD)
return true;

if (peer->sort == BGP_PEER_EBGP
Expand Down

0 comments on commit b43bf5a

Please sign in to comment.