Skip to content
Snippets Groups Projects
Commit ad377b7b authored by Vishnu Emmadi's avatar Vishnu Emmadi
Browse files

flush device manager events outside packet-in pipeline

parent c9fe2288
No related branches found
No related tags found
No related merge requests found
...@@ -2081,6 +2081,9 @@ IFlowReconcileListener, IInfoProvider { ...@@ -2081,6 +2081,9 @@ IFlowReconcileListener, IInfoProvider {
break; break;
} }
} }
// Since cleanupEntities() is not called in the packet-in pipeline,
// debugEvents need to be flushed explicitly
debugEvents.flushEvents();
} }
protected void removeEntity(Entity removed, protected void removeEntity(Entity removed,
...@@ -2234,6 +2237,9 @@ IFlowReconcileListener, IInfoProvider { ...@@ -2234,6 +2237,9 @@ IFlowReconcileListener, IInfoProvider {
sendDeviceMovedNotification(d); sendDeviceMovedNotification(d);
} }
} }
// Since topologyChanged() does not occur in the packet-in pipeline,
// debugEvents need to be flushed explicitly
debugEvents.flushEvents();
} }
/** /**
...@@ -2312,6 +2318,9 @@ IFlowReconcileListener, IInfoProvider { ...@@ -2312,6 +2318,9 @@ IFlowReconcileListener, IInfoProvider {
for (Entity entity: device.entities ) { for (Entity entity: device.entities ) {
this.learnDeviceByEntity(entity); this.learnDeviceByEntity(entity);
} }
// Since reclassifyDevices() is not called in the packet-in pipeline,
// debugEvents need to be flushed explicitly
debugEvents.flushEvents();
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment