mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
bgpd: Respect BLACKHOLE community for internal BGP peering also
rfc7999 does not define to use this technique ONLY for EBGP sessions. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
ab2fd988c9
commit
7a461479a0
@ -4793,8 +4793,6 @@ void bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id,
|
|||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (peer->sort == BGP_PEER_EBGP) {
|
|
||||||
|
|
||||||
/* rfc7999:
|
/* rfc7999:
|
||||||
* A BGP speaker receiving an announcement tagged with the
|
* A BGP speaker receiving an announcement tagged with the
|
||||||
* BLACKHOLE community SHOULD add the NO_ADVERTISE or
|
* BLACKHOLE community SHOULD add the NO_ADVERTISE or
|
||||||
@ -4809,6 +4807,7 @@ void bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id,
|
|||||||
COMMUNITY_BLACKHOLE))
|
COMMUNITY_BLACKHOLE))
|
||||||
bgp_attr_add_no_export_community(&new_attr);
|
bgp_attr_add_no_export_community(&new_attr);
|
||||||
|
|
||||||
|
if (peer->sort == BGP_PEER_EBGP) {
|
||||||
/* If we receive the graceful-shutdown community from an eBGP
|
/* If we receive the graceful-shutdown community from an eBGP
|
||||||
* peer we must lower local-preference */
|
* peer we must lower local-preference */
|
||||||
if (bgp_attr_get_community(&new_attr) &&
|
if (bgp_attr_get_community(&new_attr) &&
|
||||||
|
@ -2482,7 +2482,7 @@ is 4 octet long. The following format is used to define the community value.
|
|||||||
``blackhole``
|
``blackhole``
|
||||||
``blackhole`` represents well-known communities value ``BLACKHOLE``
|
``blackhole`` represents well-known communities value ``BLACKHOLE``
|
||||||
``0xFFFF029A`` ``65535:666``. :rfc:`7999` documents sending prefixes to
|
``0xFFFF029A`` ``65535:666``. :rfc:`7999` documents sending prefixes to
|
||||||
EBGP peers and upstream for the purpose of blackholing traffic.
|
peers and upstream for the purpose of blackholing traffic.
|
||||||
Prefixes tagged with the this community should normally not be
|
Prefixes tagged with the this community should normally not be
|
||||||
re-advertised from neighbors of the originating network. Upon receiving
|
re-advertised from neighbors of the originating network. Upon receiving
|
||||||
``BLACKHOLE`` community from a BGP speaker, ``NO_ADVERTISE`` community
|
``BLACKHOLE`` community from a BGP speaker, ``NO_ADVERTISE`` community
|
||||||
|
Loading…
Reference in New Issue
Block a user