mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 21:50:39 +00:00
bgpd: Do not output peer doppleganger dampened output
When we are cycling through all peers and looking for dampening data to dump, do not consider non-configed peers( dopplegangers ). Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
bc79672d3e
commit
783492c7cd
@ -17292,7 +17292,8 @@ static void bgp_config_write_family(struct vty *vty, struct bgp *bgp, afi_t afi,
|
||||
PEER_FLAG_CONFIG_DAMPENING))
|
||||
bgp_config_write_peer_damp(vty, group->conf, afi, safi);
|
||||
for (ALL_LIST_ELEMENTS_RO(bgp->peer, node, peer))
|
||||
if (peer_af_flag_check(peer, afi, safi,
|
||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE)
|
||||
&& peer_af_flag_check(peer, afi, safi,
|
||||
PEER_FLAG_CONFIG_DAMPENING))
|
||||
bgp_config_write_peer_damp(vty, peer, afi, safi);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user