public static StatusWithUuid convertOvsdbStatusWithUuidToCompLayerStatusWithUuid(org.opendaylight.ovsdb.plugin.api.StatusWithUuid statusWithUuid){ if(statusWithUuid.getUuid() != null){ return new StatusWithUuid(convertOvsdbStatusCodeToSalStatusCode(statusWithUuid.getCode()),statusWithUuid.getUuid()); }else if(statusWithUuid.getRequestId() != 0){ return new StatusWithUuid(convertOvsdbStatusCodeToSalStatusCode(statusWithUuid.getCode()),statusWithUuid.getRequestId()); }else{ return new StatusWithUuid(convertOvsdbStatusCodeToSalStatusCode(statusWithUuid.getCode()),statusWithUuid.getDescription()); } }
@Override @Deprecated public Status updateRow (Node node, String tableName, String parentUUID, String rowUUID, Row row) { String databaseName = OvsVswitchdSchemaConstants.DATABASE_NAME; Row<GenericTableSchema> updatedRow = this.updateRow(node, databaseName, tableName, new UUID(rowUUID), row, true); return new StatusWithUuid(StatusCode.SUCCESS); }
statusWithUuid = ovsdbTable.insertRow(node, bckCompatibleTableName, localRow.getParentUuid(), localRow.getRow()); if (statusWithUuid.isSuccess()) { UUID uuid = statusWithUuid.getUuid(); return Response.status(Response.Status.CREATED) .header("Location", String.format("%s/%s", _uriInfo.getAbsolutePath().toString(),
operationResults = results.get(); if (operationResults.isEmpty() || (transactionBuilder.getOperations().size() != operationResults.size())) { return new StatusWithUuid(StatusCode.INTERNALERROR); return new StatusWithUuid(StatusCode.BADREQUEST, result.getError()); return new StatusWithUuid(StatusCode.SUCCESS, uuid); } catch (InterruptedException | ExecutionException e) { return new StatusWithUuid(StatusCode.INTERNALERROR, e.getLocalizedMessage());
operationResults = results.get(); if (operationResults.isEmpty() || (transactionBuilder.getOperations().size() != operationResults.size())) { return new StatusWithUuid(StatusCode.INTERNALERROR); return new StatusWithUuid(StatusCode.BADREQUEST, result.getError());