Hyunsun Moon
Committed by Gerrit Code Review

Fixed to allow json media type header for ML2 delete postcommits

Change-Id: I7f90214d0c13dfa0c91cf9066b26ca21058226e8
......@@ -58,6 +58,7 @@ public class NeutronMl2NetworksWebResource extends AbstractWebResource {
@DELETE
@Path("{id}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deleteNetwork(@PathParam("id") String id) {
log.trace(String.format(NETWORKS_MESSAGE, "delete"));
......
......@@ -108,6 +108,7 @@ public class NeutronMl2PortsWebResource extends AbstractWebResource {
@Path("{id}")
@DELETE
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deletePorts(@PathParam("id") String id) {
log.trace(String.format(PORTS_MESSAGE, "delete"));
......
......@@ -60,6 +60,7 @@ public class NeutronMl2SubnetsWebResource extends AbstractWebResource {
@DELETE
@Path("{id}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response deleteSubnet(@PathParam("id") String id) {
log.trace(String.format(SUBNETS_MESSAGE, "delete"));
......