mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
Ensure that during event-driven route-map processing, the peer status is
considered, if required. Attempting to do certain processing while the peer is not Established can lead to errors.
This commit is contained in:
parent
804fb5c1e5
commit
fa5f7ad597
@ -2670,7 +2670,7 @@ bgp_route_map_process_peer (char *rmap_name, struct peer *peer,
|
|||||||
filter->map[RMAP_IN].map =
|
filter->map[RMAP_IN].map =
|
||||||
route_map_lookup_by_name (filter->map[RMAP_IN].name);
|
route_map_lookup_by_name (filter->map[RMAP_IN].name);
|
||||||
|
|
||||||
if (route_update)
|
if (route_update && peer->status == Established)
|
||||||
{
|
{
|
||||||
if (CHECK_FLAG (peer->af_flags[afi][safi],
|
if (CHECK_FLAG (peer->af_flags[afi][safi],
|
||||||
PEER_FLAG_SOFT_RECONFIG))
|
PEER_FLAG_SOFT_RECONFIG))
|
||||||
@ -2717,7 +2717,7 @@ bgp_route_map_process_peer (char *rmap_name, struct peer *peer,
|
|||||||
update = 1;
|
update = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (update && route_update)
|
if (update && route_update && peer->status == Established)
|
||||||
{
|
{
|
||||||
if (CHECK_FLAG (peer->af_flags[afi][safi],
|
if (CHECK_FLAG (peer->af_flags[afi][safi],
|
||||||
PEER_FLAG_SOFT_RECONFIG))
|
PEER_FLAG_SOFT_RECONFIG))
|
||||||
|
Loading…
Reference in New Issue
Block a user