Fixed get index of ovsdb device ID

Change-Id: I4416718b7f9549cfa2635cb2b52174bf6318bf45
diff --git a/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java b/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java
index 1fdec74..77b4829 100644
--- a/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java
+++ b/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java
@@ -131,7 +131,7 @@
         if (splits == null || splits.length < 1) {
             return null;
         }
-        IpAddress ipAddress = IpAddress.valueOf(splits[0]);
+        IpAddress ipAddress = IpAddress.valueOf(splits[1]);
         return new OvsdbNodeId(ipAddress, 0);
     }
 
diff --git a/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbTunnelConfig.java b/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbTunnelConfig.java
index 6c0f111..a32553a 100644
--- a/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbTunnelConfig.java
+++ b/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbTunnelConfig.java
@@ -129,7 +129,7 @@
         if (splits == null || splits.length < 1) {
             return null;
         }
-        IpAddress ipAddress = IpAddress.valueOf(splits[0]);
+        IpAddress ipAddress = IpAddress.valueOf(splits[1]);
         return new OvsdbNodeId(ipAddress, 0);
     }