public Status disconnect(Node node) { Connection connection = getConnection(node); if (connection != null) { ovsdbConnections.remove(normalizeId(node.getId().getValue())); connection.disconnect(); ovsdbInventoryService.removeNode(node); return new Status(StatusCode.SUCCESS); } else { return new Status(StatusCode.NOTFOUND); } }
return new Status(StatusCode.SUCCESS);