Skip to content

Commit

Permalink
Merge "Update UVE when an XmppPeer is destroyed" into R3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 1, 2016
2 parents 0f3334a + 07c7d50 commit 84bbd2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bgp/bgp_xmpp_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ class BgpXmppChannel::XmppPeer : public IPeer {

virtual ~XmppPeer() {
assert(GetRefCount() == 0);
XmppPeerInfoData peer_info;
peer_info.set_name(ToUVEKey());
peer_info.set_deleted(true);
XMPPPeerInfo::Send(peer_info);
}

virtual bool SendUpdate(const uint8_t *msg, size_t msgsize);
Expand Down

0 comments on commit 84bbd2f

Please sign in to comment.