ONOS-7797 Support adding an arbitrary number of members to an existing P4Runtime group
Change-Id: I7b9ed589ca15957ee1b2780934a6da8e998bace3
diff --git a/drivers/p4runtime/src/main/java/org/onosproject/drivers/p4runtime/mirror/P4RuntimeMirror.java b/drivers/p4runtime/src/main/java/org/onosproject/drivers/p4runtime/mirror/P4RuntimeMirror.java
index d1c9cdd..51b31aa 100644
--- a/drivers/p4runtime/src/main/java/org/onosproject/drivers/p4runtime/mirror/P4RuntimeMirror.java
+++ b/drivers/p4runtime/src/main/java/org/onosproject/drivers/p4runtime/mirror/P4RuntimeMirror.java
@@ -17,6 +17,7 @@
package org.onosproject.drivers.p4runtime.mirror;
import com.google.common.annotations.Beta;
+import org.onosproject.net.Annotations;
import org.onosproject.net.DeviceId;
import org.onosproject.net.pi.runtime.PiEntity;
import org.onosproject.net.pi.runtime.PiHandle;
@@ -74,6 +75,23 @@
void remove(H handle);
/**
+ * Stores the given annotations associating it to the given handle.
+ *
+ * @param handle handle
+ * @param annotations entry
+ */
+ void putAnnotations(H handle, Annotations annotations);
+
+ /**
+ * Returns annotations associated to the given handle, if present, otherwise
+ * null.
+ *
+ * @param handle handle
+ * @return PI table annotations
+ */
+ Annotations annotations(H handle);
+
+ /**
* Synchronizes the state of the given device ID with the given handle map.
*
* @param deviceId device ID