* Update the Flow Path REST API to call the appropriate methods
in class FlowManager.
* Replace ':' with '=" as a separator between
field name and field value in the toString() methods
of the data containers in floodlightcontroller/util/ .
diff --git a/src/main/java/net/floodlightcontroller/util/FlowPath.java b/src/main/java/net/floodlightcontroller/util/FlowPath.java
index b67fabe..f91bb4a 100644
--- a/src/main/java/net/floodlightcontroller/util/FlowPath.java
+++ b/src/main/java/net/floodlightcontroller/util/FlowPath.java
@@ -24,6 +24,13 @@
}
/**
+ * Constructor from a string.
+ */
+ public FlowPath(String str) {
+ // TODO: Implement it.
+ }
+
+ /**
* Get the flow path Flow ID.
*
* @return the flow path Flow ID.
@@ -74,13 +81,17 @@
/**
* Convert the flow path to a string.
*
+ * The string has the following form:
+ * [flowId=XXX installerId=XXX dataPath=XXX]
+ *
* @return the flow path as a string.
*/
@Override
public String toString() {
- String ret = "[flowId:" + this.flowId.toString();
- ret += " installerId:" + this.installerId.toString();
- ret += " dataPath:" + this.dataPath.toString();
+ String ret = "[flowId=" + this.flowId.toString();
+ ret += " installerId=" + this.installerId.toString();
+ ret += " dataPath=" + this.dataPath.toString();
+ ret += "]";
return ret;
}
}