Remove a link from seenLink when either end of the link goes down

Change-Id: Ie650f6fd34f10ed91112f974684e97b99c916534
This commit is contained in:
Charles Chan 2017-06-15 00:44:51 -07:00 committed by Yuta HIGUCHI
parent 8694308c4e
commit ed374235bf

View File

@ -1116,6 +1116,10 @@ public class SegmentRoutingManager implements SegmentRoutingService {
.forEach(entry -> {
portNextObjStore.remove(entry.getKey());
});
seenLinks.keySet().removeIf(key -> key.src().deviceId().equals(device.id()) ||
key.dst().deviceId().equals(device.id()));
groupHandlerMap.remove(device.id());
defaultRoutingHandler.purgeEcmpGraph(device.id());
// Note that a switch going down is associated with all of its links