diff --git a/src/vnsw/agent/controller/controller_export.cc b/src/vnsw/agent/controller/controller_export.cc index 80b07816116..a4f149f848a 100644 --- a/src/vnsw/agent/controller/controller_export.cc +++ b/src/vnsw/agent/controller/controller_export.cc @@ -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 {