Skip to content
Snippets Groups Projects
Commit 9f24d71e authored by Saurav Das's avatar Saurav Das
Browse files

fix for failing tests regarding host moved

parent 41fc314f
No related branches found
No related tags found
No related merge requests found
......@@ -418,9 +418,11 @@ public class Device implements IDevice {
if (apMap == null || apMap.isEmpty()) {
apList.add(newAP);
attachmentPoints = apList;
// there are no old attachment points - we should not treat this
// as a device moved.
return false;
// there are no old attachment points - since the device exists, this
// may be because the host really moved (so the old AP port went down);
// or it may be because the switch restarted (so old APs were nullified).
// For now we will treat both cases as host moved.
return true;
}
long id = topology.getL2DomainId(sw);
......
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