evolved API
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceContext.java
index 0ff3d737c805731485157342fff2c2cbde5ede98..c5148e425eb75cfb1165acd41d80ae60c51282e7 100644 (file)
@@ -12,6 +12,8 @@ import org.opendaylight.controller.md.sal.common.api.data.TransactionChain;
 import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.MessageHandler;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableFeatures;
+import java.math.BigInteger;
+import java.util.Collection;
 
 /**
  * The central entity of OFP is the Device Context, which encapsulate the logical state of a switch
@@ -75,5 +77,19 @@ public interface DeviceContext extends MessageHandler {
      */
     TableFeatures getCapabilities();
 
+    /**
+     * Method provides current devices connection context.
+     *
+     * @return
+     */
+    ConnectionContext getPrimaryConnectionContext();
+
+    /**
+     * Method provides current devices auxiliary connection contexts.
+     *
+     * @return
+     */
+    ConnectionContext getAuxiliaryConnectiobContexts(BigInteger cookie);
+
 }