Skip to content

Commit

Permalink
Merge "Agent crash@ route notify" into R3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 5, 2017
2 parents 38be4be + ae4d7bb commit f3fa537
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vnsw/agent/controller/controller_export.cc
Expand Up @@ -131,6 +131,11 @@ void RouteExport::Notify(const Agent *agent,
return;
}

//If channel is no more active, ignore any updates.
//It may happen that notify is enqueued before channel is removed.
if (!AgentXmppChannel::IsBgpPeerActive(agent, bgp_xmpp_peer))
return;

if (route->is_multicast()) {
MulticastNotify(bgp_xmpp_peer, associate, partition, e);
} else {
Expand Down

0 comments on commit f3fa537

Please sign in to comment.