[GoldenEye] [ONOS-4163] Add provider service update API with status change
Change-Id: Id8774f5577f735566b1826ab4adfe5969c3aa168
diff --git a/incubator/api/src/main/java/org/onosproject/incubator/net/tunnel/TunnelStore.java b/incubator/api/src/main/java/org/onosproject/incubator/net/tunnel/TunnelStore.java
index 6940ab2..519c9f7 100644
--- a/incubator/api/src/main/java/org/onosproject/incubator/net/tunnel/TunnelStore.java
+++ b/incubator/api/src/main/java/org/onosproject/incubator/net/tunnel/TunnelStore.java
@@ -19,6 +19,7 @@
import com.google.common.annotations.Beta;
import org.onosproject.core.ApplicationId;
+import org.onosproject.incubator.net.tunnel.Tunnel.State;
import org.onosproject.incubator.net.tunnel.Tunnel.Type;
import org.onosproject.net.Annotations;
import org.onosproject.net.provider.ProviderId;
@@ -38,6 +39,15 @@
TunnelId createOrUpdateTunnel(Tunnel tunnel);
/**
+ * Creates a tunnel or updates a tunnel with the new state given in input.
+ *
+ * @param tunnel tunnel
+ * @param state tunnel state
+ * @return tunnel identity
+ */
+ TunnelId createOrUpdateTunnel(Tunnel tunnel, State state);
+
+ /**
* Deletes a tunnel by a specific tunnel identifier.
*
* @param tunnelId tunnel unique identifier generated by ONOS