@Override public void deleteRow(Node node, String databaseName, String tableName, String parentTable, UUID parentRowUuid, String parentColumn, UUID rowUuid) throws OvsdbPluginException { pluginOvsdbConfigurationService .deleteRow(NodeUtils.getMdsalNode(node), databaseName, tableName, parentTable, parentRowUuid, parentColumn, rowUuid); }
@Override public Status deleteRow(Node node, String tableName, String uuid) { return StatusConvertorUtil .convertOvsdbStatusToSalStatus(pluginOvsdbConfigurationService. deleteRow(NodeUtils.getMdsalNode(node), tableName, uuid)); }
@DELETE @Path("{id}") @Consumes(MediaType.APPLICATION_JSON) public Response deleteRow(@PathParam("id") String id){ OvsdbConfigurationService ovsdbTable = (OvsdbConfigurationService)ServiceHelper.getGlobalInstance(OvsdbConfigurationService.class, this); if (ovsdbTable == null) { throw new ServiceUnavailableException("Ovsdb ConfigurationService " + RestMessages.SERVICEUNAVAILABLE.toString()); } Node node = NodeResource.getOvsdbNode(nodeId, this); try { ovsdbTable.deleteRow(node, databaseName, tableName, new UUID(id)); } catch (Exception e) { throw new BadRequestException(e.getMessage()); } return Response.status(Response.Status.OK) .build(); } }
String bckCompatibleTableName = this.getBackwardCompatibleTableName(client, OvsVswitchdSchemaConstants.DATABASE_NAME, tableName); Status status = ovsdbTable.deleteRow(node, bckCompatibleTableName, uuid); if (status.isSuccess()) { return Response.noContent().build();