Bug fix for bug 328 93/4493/3
authorDave Tucker <dave@dtucker.co.uk>
Tue, 21 Jan 2014 11:50:39 +0000 (11:50 +0000)
committerDave Tucker <dave@dtucker.co.uk>
Tue, 21 Jan 2014 21:45:32 +0000 (21:45 +0000)
https://bugs.opendaylight.org/show_bug.cgi?id=328#add_comment

Casts node_id to long before instantiatiing an Node

Change-Id: I846bfe11cef49adeea65d9d2cce6a0d7444b93f5
Signed-off-by: Dave Tucker <dave.j.tucker@hp.com>
opendaylight/northbound/connectionmanager/src/main/java/org/opendaylight/controller/connectionmanager/northbound/ConnectionManagerNorthbound.java

index c069f82..e2c1b32 100644 (file)
@@ -334,7 +334,7 @@ public class ConnectionManagerNorthbound {
         }
 
         try {
-            Node node = new Node(nodeType, nodeId);
+            Node node = Node.fromString(nodeType, nodeId);
             Status status = connectionManager.disconnect(node);
             if (status.isSuccess()) {
                 return Response.ok().build();