[SDFAB-753] Optimize ClusterEvent handling in SR
Do not purge sr-should-program cache and do not perform rerouting
when Atomix nodes events are received
Change-Id: I6a9e3f70b773142d7084c6c6596d2fc534b7065c
diff --git a/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java b/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
index 85511d6..d84215b 100644
--- a/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
+++ b/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
@@ -2115,6 +2115,11 @@
@Override
public void event(ClusterEvent event) {
+ if (event.instanceType() == ClusterEvent.InstanceType.STORAGE) {
+ log.debug("Skipping cluster event for {}", event.subject().id().id());
+ return;
+ }
+
switch (event.type()) {
case INSTANCE_ACTIVATED:
case INSTANCE_ADDED:
diff --git a/pom.xml b/pom.xml
index 438d885..f9ade96 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.onosproject</groupId>
<artifactId>onos-dependencies</artifactId>
- <version>2.5.5-rc1</version>
+ <version>2.5.5-SNAPSHOT</version>
</parent>
<groupId>org.onosproject</groupId>