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 { ...@@ -58,6 +58,7 @@ public class NeutronMl2NetworksWebResource extends AbstractWebResource {
58 58
59 @DELETE 59 @DELETE
60 @Path("{id}") 60 @Path("{id}")
61 + @Consumes(MediaType.APPLICATION_JSON)
61 @Produces(MediaType.APPLICATION_JSON) 62 @Produces(MediaType.APPLICATION_JSON)
62 public Response deleteNetwork(@PathParam("id") String id) { 63 public Response deleteNetwork(@PathParam("id") String id) {
63 log.trace(String.format(NETWORKS_MESSAGE, "delete")); 64 log.trace(String.format(NETWORKS_MESSAGE, "delete"));
......
...@@ -108,6 +108,7 @@ public class NeutronMl2PortsWebResource extends AbstractWebResource { ...@@ -108,6 +108,7 @@ public class NeutronMl2PortsWebResource extends AbstractWebResource {
108 108
109 @Path("{id}") 109 @Path("{id}")
110 @DELETE 110 @DELETE
111 + @Consumes(MediaType.APPLICATION_JSON)
111 @Produces(MediaType.APPLICATION_JSON) 112 @Produces(MediaType.APPLICATION_JSON)
112 public Response deletePorts(@PathParam("id") String id) { 113 public Response deletePorts(@PathParam("id") String id) {
113 log.trace(String.format(PORTS_MESSAGE, "delete")); 114 log.trace(String.format(PORTS_MESSAGE, "delete"));
......
...@@ -60,6 +60,7 @@ public class NeutronMl2SubnetsWebResource extends AbstractWebResource { ...@@ -60,6 +60,7 @@ public class NeutronMl2SubnetsWebResource extends AbstractWebResource {
60 60
61 @DELETE 61 @DELETE
62 @Path("{id}") 62 @Path("{id}")
63 + @Consumes(MediaType.APPLICATION_JSON)
63 @Produces(MediaType.APPLICATION_JSON) 64 @Produces(MediaType.APPLICATION_JSON)
64 public Response deleteSubnet(@PathParam("id") String id) { 65 public Response deleteSubnet(@PathParam("id") String id) {
65 log.trace(String.format(SUBNETS_MESSAGE, "delete")); 66 log.trace(String.format(SUBNETS_MESSAGE, "delete"));
......