commit | 17d75d8b168d045bc13c2c6e043e930628c2834a | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Thu Jun 15 00:44:51 2017 -0700 |
committer | Yuta HIGUCHI <y-higuchi@opennetworking.org> | Thu Jun 15 21:56:39 2017 +0000 |
tree | 8680cb02979f66836ac8ea30d09c36f121b61a99 | |
parent | 78b21a139940e54464ba35da73c5543bd0087943 [diff] |
Remove a link from seenLink when either end of the link goes down Change-Id: Ie650f6fd34f10ed91112f974684e97b99c916534
diff --git a/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java b/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java index 3bc56b6..6bacfce 100644 --- a/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java +++ b/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
@@ -1116,6 +1116,10 @@ .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