Wu wenbin
Committed by Gerrit Code Review

ONOS-4512 vtn-web can't delete router/net/floating/port

Change-Id: I6860aed0c719d4c8f62f21055e650f9f7b29a6f8
......@@ -151,8 +151,10 @@ public class FloatingIpWebResource extends AbstractWebResource {
}
}
@Path("{floatingIpUUID}")
@DELETE
@Path("{floatingIpUUID}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deleteSingleFloatingIp(@PathParam("floatingIpUUID") String id)
throws IOException {
try {
......
......@@ -158,8 +158,10 @@ public class RouterWebResource extends AbstractWebResource {
}
}
@Path("{routerUUID}")
@DELETE
@Path("{routerUUID}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deleteSingleRouter(@PathParam("routerUUID") String id)
throws IOException {
try {
......
......@@ -147,8 +147,10 @@ public class SubnetWebResource extends AbstractWebResource {
}
}
@Path("{subnetUUID}")
@DELETE
@Path("{subnetUUID}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deleteSingleSubnet(@PathParam("subnetUUID") String id)
throws IOException {
try {
......
......@@ -240,6 +240,8 @@ public class TenantNetworkWebResource extends AbstractWebResource {
@DELETE
@Path("{id}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deleteNetworks(@PathParam("id") String id) {
log.debug("Deletes network by identifier {}.", id);
Set<TenantNetworkId> networkSet = new HashSet<>();
......
......@@ -130,8 +130,10 @@ public class VirtualPortWebResource extends AbstractWebResource {
}
}
@Path("{portUUID}")
@DELETE
@Path("{portUUID}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deletePorts(@PathParam("portUUID") String id) {
Set<VirtualPortId> vPortIds = new HashSet<>();
try {
......