Fixing an issue where intents fail to re-route after a node is restarted; caused by failure to register intent resources correctly.
Change-Id: I239e3b538d5b9134422fa629514e095e4914bb0c
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/ObjectiveTrackerService.java b/core/net/src/main/java/org/onosproject/net/intent/impl/ObjectiveTrackerService.java
index 667803c..b7d367d 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/ObjectiveTrackerService.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/ObjectiveTrackerService.java
@@ -15,11 +15,12 @@
*/
package org.onosproject.net.intent.impl;
-import java.util.Collection;
-
import org.onosproject.net.NetworkResource;
+import org.onosproject.net.intent.IntentData;
import org.onosproject.net.intent.Key;
+import java.util.Collection;
+
/**
* Auxiliary service for tracking intent path flows and for notifying the
* intent service of environment changes via topology change delegate.
@@ -59,4 +60,10 @@
void removeTrackedResources(Key intentKey,
Collection<NetworkResource> resources);
+ /**
+ * Submits the specified intent data to be tracked.
+ *
+ * @param intentData intent data object to be tracked
+ */
+ void trackIntent(IntentData intentData);
}