Skip to content
Snippets Groups Projects
Commit a57e6e94 authored by Kanzhe Jiang's avatar Kanzhe Jiang
Browse files

clear device's AP blocking state upon topology change

parent 6c645fd3
No related branches found
No related tags found
No related merge requests found
......@@ -1663,10 +1663,18 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
}
synchronized (d) {
// Since the update below is happening on a copy of the device it
// should not impact packetIn processing time due to lock contention
/**
* Since the update below is happening on a copy of the device it
* should not impact packetIn processing time due to lock contention
*
* Also make sure the attachmentPoints are in non-blocked state
*/
for (DeviceAttachmentPoint dap: tempAPMap.values()) {
dap.setBlocked(false);
}
d.setAttachmentPoints(tempAPMap.values());
for (DeviceAttachmentPoint dap : tempOldAPMap.values()) {
dap.setBlocked(false);
d.addOldAttachmentPoint(dap);
}
......
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