Change the underlying type of IntentId
- Change the type from String to long
- Change the argument of the constructor of Intent
- Adapt PacketConnectivityIntent and OpticalConnectivityIntent
for these change
Change-Id: Iec7154c7d87c3a598fb5b55d886fa9775b3ddef0
diff --git a/src/main/java/net/onrc/onos/api/intent/PacketConnectivityIntent.java b/src/main/java/net/onrc/onos/api/intent/PacketConnectivityIntent.java
index 99660c8..020dd56 100644
--- a/src/main/java/net/onrc/onos/api/intent/PacketConnectivityIntent.java
+++ b/src/main/java/net/onrc/onos/api/intent/PacketConnectivityIntent.java
@@ -42,7 +42,7 @@
* @param canSetupOpticalFlow The flag whether this intent can create
* optical flows if needed.
*/
- public PacketConnectivityIntent(String id,
+ public PacketConnectivityIntent(IntentId id,
Collection<SwitchPort> srcSwitchPorts, PacketMatch match,
Collection<SwitchPort> dstSwitchPorts, boolean canSetupOpticalFlow) {
super(id);