From: Dave Tucker Date: Tue, 21 Jan 2014 11:50:39 +0000 (+0000) Subject: Bug fix for bug 328 X-Git-Tag: jenkins-controller-bulk-release-prepare-only-2-1~42^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=41975c0422fb289eebc67a87ca2c7b1818820b18 Bug fix for bug 328 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 --- diff --git a/opendaylight/northbound/connectionmanager/src/main/java/org/opendaylight/controller/connectionmanager/northbound/ConnectionManagerNorthbound.java b/opendaylight/northbound/connectionmanager/src/main/java/org/opendaylight/controller/connectionmanager/northbound/ConnectionManagerNorthbound.java index c069f82a84..e2c1b32c4b 100644 --- a/opendaylight/northbound/connectionmanager/src/main/java/org/opendaylight/controller/connectionmanager/northbound/ConnectionManagerNorthbound.java +++ b/opendaylight/northbound/connectionmanager/src/main/java/org/opendaylight/controller/connectionmanager/northbound/ConnectionManagerNorthbound.java @@ -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();