Bug 6554 Fix rejecting connections
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceInfo.java
index 9272c919b223b312d63f5766b89a15b338240d2c..4af09607a3ff22a8d005d50a8e8d712ff81b3c9d 100644 (file)
@@ -18,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
@@ -33,7 +33,7 @@ public interface DeviceInfo {
     /**
      * @return version
      */
-    Short getVersion();
+    short getVersion();
 
     /**
      * @return datapathId
@@ -45,4 +45,12 @@ public interface DeviceInfo {
      */
     ServiceGroupIdentifier getServiceIdentifier();
 
+    /**
+     * Many uses in log, this will make code more readable
+     * @return string representation of nodeId
+     */
+    default String getLOGValue() {
+        return getNodeId().getValue();
+    }
+
 }