Implement CLI commands to view and delete SR internal stores
sr-next-dst (renamed from sr-next-hops)
sr-next-port
sr-next-vlan
sr-next-mcast (renamed from sr-mcast-next)
sr-next-pw
sr-next-xconnect
sr-next-invalidate <next-id>
Change-Id: Id5178f786bb97e26ddb86015105dd19604ac0817
diff --git a/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/L2TunnelHandler.java b/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/L2TunnelHandler.java
index d3b95b4..2a003b3 100644
--- a/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/L2TunnelHandler.java
+++ b/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/L2TunnelHandler.java
@@ -16,6 +16,9 @@
package org.onosproject.segmentrouting.pwaas;
+import com.google.common.collect.ImmutableMap;
+import org.onosproject.net.flowobjective.NextObjective;
+
import java.util.List;
import java.util.Set;
@@ -91,6 +94,27 @@
Result checkIfPwExists(long tunnelId, boolean pending);
/**
+ * Returns the PW init next objective store.
+ *
+ * @return current contents of the l2InitiationNextObjStore
+ */
+ ImmutableMap<String, NextObjective> getInitNext();
+
+ /**
+ * Returns the PW termination next objective store.
+ *
+ * @return current contents of the l2TerminationNextObjStore
+ */
+ ImmutableMap<String, NextObjective> getTermNext();
+
+ /**
+ * Removes given next ID from both PW init/term next obj store.
+ *
+ * @param nextId next ID
+ */
+ void removeNextId(int nextId);
+
+ /**
* Pwaas pipelines.
*/
enum Pipeline {