From 17f3b823ef0a032f70ab87d651f3f17c33c72f07 Mon Sep 17 00:00:00 2001
From: Wilson Ng <wilson.ng@bigswitch.com>
Date: Wed, 4 Jul 2012 13:48:08 -0700
Subject: [PATCH] Add getLinkType() as a public method in ILinkDiscoveryService
 interface.

---
 .../linkdiscovery/ILinkDiscoveryService.java           | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/main/java/net/floodlightcontroller/linkdiscovery/ILinkDiscoveryService.java b/src/main/java/net/floodlightcontroller/linkdiscovery/ILinkDiscoveryService.java
index e950bee8b..f1142fd31 100644
--- a/src/main/java/net/floodlightcontroller/linkdiscovery/ILinkDiscoveryService.java
+++ b/src/main/java/net/floodlightcontroller/linkdiscovery/ILinkDiscoveryService.java
@@ -44,7 +44,15 @@ public interface ILinkDiscoveryService extends IFloodlightService {
      * @return linkTuple
      */
     public LinkInfo getLinkInfo(SwitchPortTuple idPort, boolean isSrcPort);
-    
+
+    /**
+     * Get the link type of the link tuple based on link info.
+     * @param linkTuple
+     * @param linkInfo
+     * @return linkType
+     */
+    public ILinkDiscovery.LinkType getLinkType(LinkTuple lt, LinkInfo info);
+
     /**
      * Retrieves a map of all known link connections between OpenFlow switches
      * and the associated info (valid time, port states) for the link.
-- 
GitLab