commit | 54d51aa3cdf9a53f17d623b98ffc00fe18e1ee0e | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Thu Apr 28 17:33:41 2016 -0500 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Apr 29 16:21:34 2016 +0000 |
tree | eb943a8985c08fbd5480ae41639c66ead013abb3 | |
parent | 5c9591cb7fc896a801cc0f0181945bd4ef69fd8d [diff] |
Fixed to allow json media type header for ML2 delete postcommits Change-Id: I7f90214d0c13dfa0c91cf9066b26ca21058226e8
diff --git a/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2NetworksWebResource.java b/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2NetworksWebResource.java index c5c3181..57c16d9 100644 --- a/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2NetworksWebResource.java +++ b/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2NetworksWebResource.java
@@ -58,6 +58,7 @@ @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"));
diff --git a/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2PortsWebResource.java b/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2PortsWebResource.java index 1d29594..1c37a2d 100644 --- a/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2PortsWebResource.java +++ b/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2PortsWebResource.java
@@ -108,6 +108,7 @@ @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"));
diff --git a/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2SubnetsWebResource.java b/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2SubnetsWebResource.java index c54b04f..75de452 100644 --- a/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2SubnetsWebResource.java +++ b/apps/cordvtn/src/main/java/org/onosproject/cordvtn/rest/NeutronMl2SubnetsWebResource.java
@@ -60,6 +60,7 @@ @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"));