Bug 6554 Fix rejecting connections
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceInfo.java
index 75b0f13266ba99dc5bf189875a93c577794459b2..4af09607a3ff22a8d005d50a8e8d712ff81b3c9d 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.openflowplugin.api.openflow.device;
 
 import java.math.BigInteger;
+import org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
@@ -17,7 +18,7 @@ import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
 /**
  * API defining basic device information
  */
-public interface DeviceInfo {
+public interface DeviceInfo extends XidSequencer {
 
     /**
      * @return id of encapsulated node
@@ -32,11 +33,24 @@ public interface DeviceInfo {
     /**
      * @return version
      */
-    Short getVersion();
+    short getVersion();
 
     /**
      * @return datapathId
      */
     BigInteger getDatapathId();
 
+    /**
+     * @return clustering service identifier
+     */
+    ServiceGroupIdentifier getServiceIdentifier();
+
+    /**
+     * Many uses in log, this will make code more readable
+     * @return string representation of nodeId
+     */
+    default String getLOGValue() {
+        return getNodeId().getValue();
+    }
+
 }