OPNFLWPLUG-951: Adding equal role functionality
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / lifecycle / ContextChainHolder.java
index d0a0f2d8ae09c5e510b42ddc69b4af08b4d57e69..55397427a1c619d97751135906c5c66aa297edab 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.openflowplugin.api.openflow.lifecycle;
 import org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener;
 import org.opendaylight.openflowplugin.api.openflow.OFPManager;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
+import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceManager;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler;
@@ -51,6 +52,12 @@ public interface ContextChainHolder extends
      */
     <T extends OFPManager> void addManager(T manager);
 
+    /**
+     * Return the {@link ContextChain} for a given {@link DeviceInfo}.
+     * @return {@link ContextChain}
+     */
+    ContextChain getContextChain(DeviceInfo deviceInfo);
+
     @Override
     void close() throws Exception;