mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-06 03:56:57 +00:00
bgpd: Do not filter no-export community for BGP OAD (one administration domain)
OAD is treated as an _internal_ BGP peer, and some of the rules (including BGP attributes) can be relaxed. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
75e34c032b
commit
e63b1520f1
@ -1779,14 +1779,13 @@ static bool bgp_community_filter(struct peer *peer, struct attr *attr)
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
/* NO_EXPORT check. */
|
/* NO_EXPORT check. */
|
||||||
if (peer->sort == BGP_PEER_EBGP &&
|
if (peer->sort == BGP_PEER_EBGP && peer->sub_sort != BGP_PEER_EBGP_OAD &&
|
||||||
community_include(bgp_attr_get_community(attr),
|
community_include(bgp_attr_get_community(attr), COMMUNITY_NO_EXPORT))
|
||||||
COMMUNITY_NO_EXPORT))
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
/* NO_EXPORT_SUBCONFED check. */
|
/* NO_EXPORT_SUBCONFED check. */
|
||||||
if (peer->sort == BGP_PEER_EBGP
|
if ((peer->sort == BGP_PEER_EBGP && peer->sub_sort != BGP_PEER_EBGP_OAD) ||
|
||||||
|| peer->sort == BGP_PEER_CONFED)
|
peer->sort == BGP_PEER_CONFED)
|
||||||
if (community_include(bgp_attr_get_community(attr),
|
if (community_include(bgp_attr_get_community(attr),
|
||||||
COMMUNITY_NO_EXPORT_SUBCONFED))
|
COMMUNITY_NO_EXPORT_SUBCONFED))
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user