Skip to content
Snippets Groups Projects
Commit 230320ab authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Device moved notification has to be generated when the new attachment point...

Device moved notification has to be generated when the new attachment point was already in the oldAP list.
parent 1feaa1f0
No related branches found
No related tags found
No related merge requests found
...@@ -458,11 +458,14 @@ entity.getLastSeenTimestamp().getTime()); ...@@ -458,11 +458,14 @@ entity.getLastSeenTimestamp().getTime());
} else if (oldAPFlag) { } else if (oldAPFlag) {
// retain oldAP as is. Put the newAP in oldAPs for flagging // retain oldAP as is. Put the newAP in oldAPs for flagging
// possible duplicates. // possible duplicates.
oldAPList = new ArrayList<AttachmentPoint>(); oldAPList = new ArrayList<AttachmentPoint>();
if (oldAPs != null) oldAPList.addAll(oldAPs); if (oldAPs != null) oldAPList.addAll(oldAPs);
// Add ot oldAPList only if it was picked up from the oldAPList // Add to oldAPList only if it was picked up from the oldAPList
oldAPList.add(newAP); oldAPList.add(newAP);
this.oldAPs = oldAPList; this.oldAPs = oldAPList;
if (!topology.isInSameBroadcastDomain(oldAP.getSw(), oldAP.getPort(),
newAP.getSw(), newAP.getPort()))
return true; // attachment point changed.
} }
return false; return false;
} }
......
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