DeviceState changes
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceManager.java
index 3af5e496428bf83d98bb3f948ae68d1eb52dad49..0e199c26f8adb591e564a9982342c4241b72d6ba 100644 (file)
@@ -9,14 +9,12 @@
 package org.opendaylight.openflowplugin.api.openflow.device;
 
 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
-import org.opendaylight.controller.md.sal.binding.api.NotificationService;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceLifecycleSupervisor;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceTerminationPhaseHandler;
 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
 
 /**
  * This interface is responsible for instantiating DeviceContext and
@@ -43,10 +41,10 @@ public interface DeviceManager extends DeviceConnectedHandler, DeviceDisconnecte
      * Returning device context from map maintained in device manager
      * This prevent to send whole device context to another context
      * If device context not exists for nodeId it will return null
-     * @param nodeId
-     * @return device context or null
+     *
+     * @param deviceInfo@return device context or null
      */
-    DeviceContext getDeviceContextFromNodeId(NodeId nodeId);
+    DeviceContext getDeviceContextFromNodeId(DeviceInfo deviceInfo);
 
     void setStatisticsRpcEnabled(boolean isStatisticsRpcEnabled);
 }