mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
Merge pull request #8062 from donaldsharp/bgp_blackhole
bgpd: Blackhole nexthops are not reachable
This commit is contained in:
commit
95e336226e
@ -843,9 +843,17 @@ static void evaluate_paths(struct bgp_nexthop_cache *bnc)
|
|||||||
if (peer) {
|
if (peer) {
|
||||||
int valid_nexthops = bgp_isvalid_nexthop(bnc);
|
int valid_nexthops = bgp_isvalid_nexthop(bnc);
|
||||||
|
|
||||||
if (valid_nexthops)
|
if (valid_nexthops) {
|
||||||
|
/*
|
||||||
|
* Peering cannot occur across a blackhole nexthop
|
||||||
|
*/
|
||||||
|
if (bnc->nexthop_num == 1
|
||||||
|
&& bnc->nexthop->type == NEXTHOP_TYPE_BLACKHOLE) {
|
||||||
|
peer->last_reset = PEER_DOWN_WAITING_NHT;
|
||||||
|
valid_nexthops = 0;
|
||||||
|
} else
|
||||||
peer->last_reset = PEER_DOWN_WAITING_OPEN;
|
peer->last_reset = PEER_DOWN_WAITING_OPEN;
|
||||||
else
|
} else
|
||||||
peer->last_reset = PEER_DOWN_WAITING_NHT;
|
peer->last_reset = PEER_DOWN_WAITING_NHT;
|
||||||
|
|
||||||
if (!CHECK_FLAG(bnc->flags, BGP_NEXTHOP_PEER_NOTIFIED)) {
|
if (!CHECK_FLAG(bnc->flags, BGP_NEXTHOP_PEER_NOTIFIED)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user