commit | ed374235bfb83646f2d587cf20be1ab7c60e9cd2 | [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 | cb6c9e318834ad851bc2314c8f1aec803ff79f09 | |
parent | 8694308c4e2b3937062c386cefbc4c029eecb68b [diff] |
Remove a link from seenLink when either end of the link goes down Change-Id: Ie650f6fd34f10ed91112f974684e97b99c916534
diff --git a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java index 3bc56b6..6bacfce 100644 --- a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java +++ b/apps/segmentrouting/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