Adapt to the new Flow Manager API
- Use FlowId instead of String
Change-Id: Iac98919ed64cc0de6a0783e862880d16e3ba32a1
diff --git a/src/main/java/net/onrc/onos/api/intent/IIntentRuntimeService.java b/src/main/java/net/onrc/onos/api/intent/IIntentRuntimeService.java
index 2b7b517..a3b1705 100644
--- a/src/main/java/net/onrc/onos/api/intent/IIntentRuntimeService.java
+++ b/src/main/java/net/onrc/onos/api/intent/IIntentRuntimeService.java
@@ -5,6 +5,7 @@
import net.onrc.onos.api.flowmanager.ConflictDetectionPolicy;
import net.onrc.onos.api.flowmanager.Flow;
+import net.onrc.onos.api.flowmanager.FlowId;
/**
* An interface class for the Intent-Runtime Service. The role of the
@@ -128,7 +129,7 @@
* @param flowId ID of the target IFlow object.
* @return Intent which manages the specified IFlow object, null otherwise.
*/
- Intent getIntentByFlow(String flowId);
+ Intent getIntentByFlow(FlowId flowId);
/**
* Sets a conflict detection policy.
diff --git a/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java b/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java
index 59cfec0..cabc1a7 100644
--- a/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java
+++ b/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java
@@ -5,6 +5,7 @@
import net.onrc.onos.api.flowmanager.ConflictDetectionPolicy;
import net.onrc.onos.api.flowmanager.Flow;
+import net.onrc.onos.api.flowmanager.FlowId;
import net.onrc.onos.api.intent.IIntentRuntimeService;
import net.onrc.onos.api.intent.Intent;
import net.onrc.onos.api.intent.IntentBatchOperation;
@@ -84,7 +85,7 @@
}
@Override
- public Intent getIntentByFlow(String flowId) {
+ public Intent getIntentByFlow(FlowId flowId) {
// TODO Auto-generated method stub
return null;
}