X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fswitchmanager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fswitchmanager%2Fnorthbound%2FSwitchNorthbound.java;h=d3b023512bebd5790559b7e047b813e0558395e9;hb=f6cf2705027563995894cd60b6620f501ae7025a;hp=e92583a33a9543c30c60b269ddc67a0c075c8561;hpb=2aa5c39bdd7c498a3b33db434d3943c130e05bc8;p=controller.git diff --git a/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java b/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java index e92583a33a..d3b023512b 100644 --- a/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java +++ b/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java @@ -205,7 +205,7 @@ public class SwitchNorthbound { } handleNodeAvailability(containerName, nodeType, nodeId); - Node node = Node.fromString(nodeId); + Node node = Node.fromString(nodeType, nodeId); Property prop = switchManager.createProperty(propName, propValue); if (prop == null) { @@ -262,8 +262,7 @@ public class SwitchNorthbound { } handleNodeAvailability(containerName, nodeType, nodeId); - Node node = Node.fromString(nodeId); - + Node node = Node.fromString(nodeType, nodeId); Status ret = switchManager.removeNodeProp(node, propertyName); if (ret.isSuccess()) { return Response.ok().build(); @@ -316,8 +315,7 @@ public class SwitchNorthbound { } handleNodeAvailability(containerName, nodeType, nodeId); - Node node = Node.fromString(nodeId); - + Node node = Node.fromString(nodeType, nodeId); List res = new ArrayList(); Set ncs = switchManager.getNodeConnectors(node); if (ncs == null) { @@ -397,12 +395,12 @@ public class SwitchNorthbound { } handleNodeAvailability(containerName, nodeType, nodeId); - Node node = Node.fromString(nodeId); + Node node = Node.fromString(nodeType, nodeId); handleNodeConnectorAvailability(containerName, node, nodeConnectorType, nodeConnectorId); NodeConnector nc = NodeConnector - .fromStringNoNode(nodeConnectorId, node); + .fromStringNoNode(nodeConnectorType, nodeConnectorId, node); Property prop = switchManager.createProperty(propName, propValue); if (prop == null) { @@ -470,13 +468,12 @@ public class SwitchNorthbound { } handleNodeAvailability(containerName, nodeType, nodeId); - Node node = Node.fromString(nodeId); + Node node = Node.fromString(nodeType, nodeId); handleNodeConnectorAvailability(containerName, node, nodeConnectorType, nodeConnectorId); NodeConnector nc = NodeConnector - .fromStringNoNode(nodeConnectorId, node); - + .fromStringNoNode(nodeConnectorType, nodeConnectorId, node); Status ret = switchManager.removeNodeConnectorProp(nc, propertyName); if (ret.isSuccess()) { return Response.ok().build();