From b29ef1082daa3e03959c530d848881ae038dafe4 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 23 Apr 2021 13:45:44 -0400 Subject: [PATCH] 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 --- bgpd/bgp_vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index eb15d8b9ae..cb94eefeba 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -19094,7 +19094,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); -- 2.39.5