Skip to content

Commit

Permalink
Merge "Ignore sending VM subscribes for ServiceInstance VMs, Interfac…
Browse files Browse the repository at this point in the history
…e port-type attribute distinguishes Nova created VMs and ServiceInstance VMs."
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Dec 4, 2014
2 parents ccd2c98 + 974a6cf commit 54421e9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/vnsw/agent/controller/controller_ifmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,21 @@ void AgentIfMapVmExport::Notify(DBTablePartBase *partition, DBEntryBase *e) {
AgentXmppChannel *peer = NULL;
AgentIfMapXmppChannel *ifmap = NULL;
struct VmExportInfo *info = NULL;

std::stringstream vmid, vmiid;
vmid << entry->GetVmUuid();
vmiid << entry->GetUuid();
if (entry->port_type() == CfgIntEntry::CfgIntNameSpacePort) {
CONTROLLER_TRACE(IFMapVmExportTrace, vmid.str(), "NameSpacePort",
"Ignore Sending Subscribe/Unsubscribe");
return;
}

VmMap::iterator vm_it = vm_map_.find(entry->GetVmUuid());
if (vm_map_.end() != vm_it) {
info = vm_it->second;
}

std::stringstream vmid, vmiid;
vmid << entry->GetVmUuid();
vmiid << entry->GetUuid();
if (entry->IsDeleted()) {

//If delete already processed, neglect the delete
Expand Down

0 comments on commit 54421e9

Please sign in to comment.