Commit 8f97b2ee authored by Christoph Storm's avatar Christoph Storm
Browse files

Updates to positionInformation ONLY when used Location is a

PositionVector
parent 7f3108c3
......@@ -340,6 +340,14 @@ public abstract class AbstractTopologyView<L extends DefaultLink> implements
for (Entry<MacAddress, Boolean> entry : neighborsOutdated
.entrySet()) {
entry.setValue(true);
// Fix Christoph Storm: Update positions map
// This relies on location being a PositionVector...
if(location instanceof PositionVector && host.getNetworkComponent().getByName(phy.getNetInterfaceName())
.getLocalInetAddress().equals(macs.get(entry.getKey()).getNetId())){
positions.put(entry.getKey(), new PositionVector( (PositionVector) location ));
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment