RFC 8212 should be restricted for eBGP peers.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
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 &&
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