Added a function to return the first group ID of the tunnel for 'show tunnel' CLI command.
Change-Id: I08e42bb4c7842a303efe3fb29dda952404110ecb
diff --git a/src/main/java/net/floodlightcontroller/core/IOF13Switch.java b/src/main/java/net/floodlightcontroller/core/IOF13Switch.java
index d6fc9e4..94b8930 100644
--- a/src/main/java/net/floodlightcontroller/core/IOF13Switch.java
+++ b/src/main/java/net/floodlightcontroller/core/IOF13Switch.java
@@ -158,4 +158,13 @@
*/
public void removeTunnel(String tunnelId);
+ /**
+ * Return the first group ID for the tunnel.
+ * If the router is not the source of the tunnel, it returns -1
+ *
+ * @param tunnelID tunnel ID for the tunnel
+ * @param srcDpid source router DPID
+ * @return first Group ID for the tunnel or -1 if not found
+ */
+ public int getTunnelGroupId(String tunnelID);
}