Added WITHDRAW_REQ Intent State for ONOS-146
Fixed flow removed from other instance
Change-Id: I22c88a447e26770fea8b7e23f4a78b1389077ad1
diff --git a/core/api/src/main/java/org/onlab/onos/net/intent/IntentState.java b/core/api/src/main/java/org/onlab/onos/net/intent/IntentState.java
index 0e9211d..4a534c1 100644
--- a/core/api/src/main/java/org/onlab/onos/net/intent/IntentState.java
+++ b/core/api/src/main/java/org/onlab/onos/net/intent/IntentState.java
@@ -26,9 +26,11 @@
* local controller instance.
* <p>
* All intent in the runtime take this state first.
+ * </p><p>
+ * Intents will also pass through this state when they are updated.
* </p>
*/
- SUBMITTED,
+ INSTALL_REQ,
/**
* Signifies that the intent is being compiled into installable intents.
@@ -67,16 +69,11 @@
RECOMPILING,
/**
- * TODO: Indicated that an intent will soon be recompiled.
- */
- //UPDATE,
-
- /**
- * TODO.
* Indicates that an application has requested that an intent be withdrawn.
- * It will start withdrawing short, but not necessarily on this instance.
+ * It will start withdrawing shortly, but not necessarily on this instance.
+ * Intents can also be parked here if it is impossible to withdraw them.
*/
- //WITHDRAW_REQ,
+ WITHDRAW_REQ,
/**
* Indicates that the intent is being withdrawn. This is a transitional