Skip to content

Commit

Permalink
Delete BGP Peer Flap count UVE when the peer is destroyed
Browse files Browse the repository at this point in the history
Change-Id: I6e4e5646fce4e48552d63b926ae65a2b7bf7421f
Partial-Bug: #1576437
  • Loading branch information
ananth-at-camphor-networks committed Jul 28, 2016
1 parent 125297c commit c5cda23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bgp/bgp_peer.cc
Expand Up @@ -660,6 +660,11 @@ BgpPeer::~BgpPeer() {
peer_stats_data.set_deleted(true);
PeerStatsUve::Send(peer_stats_data, "ObjectBgpPeer");

PeerFlapData peer_flap_data;
peer_flap_data.set_name(ToUVEKey());
peer_flap_data.set_deleted(true);
PeerFlap::Send(peer_flap_data, "ObjectBgpPeer");

BGP_LOG_PEER(Event, this, SandeshLevel::SYS_INFO, BGP_LOG_FLAG_ALL,
BGP_PEER_DIR_NA, "Deleted");
}
Expand Down

0 comments on commit c5cda23

Please sign in to comment.