commit | 619249937939cdb1f91cbe9449dcb627cd4fdb18 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Thu Sep 01 09:36:27 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Sep 07 18:50:51 2016 +0000 |
tree | 3720c9e192822961dd752835ecf0652f684f8a7d | |
parent | 3d8ff287747f23fe347afec0061f26151cf90923 [diff] |
Use subject factory to create subject for deletion rather than using the string/ Change-Id: Ib7680b07642d676e9ad7f10fd59471880aa79771
diff --git a/web/api/src/main/java/org/onosproject/rest/resources/NetworkConfigWebResource.java b/web/api/src/main/java/org/onosproject/rest/resources/NetworkConfigWebResource.java index 3afeb3a..39c9dd3 100644 --- a/web/api/src/main/java/org/onosproject/rest/resources/NetworkConfigWebResource.java +++ b/web/api/src/main/java/org/onosproject/rest/resources/NetworkConfigWebResource.java
@@ -362,7 +362,7 @@ public Response delete(@PathParam("subjectClassKey") String subjectClassKey, @PathParam("subjectKey") String subjectKey) { NetworkConfigService service = get(NetworkConfigService.class); - service.removeConfig(subjectKey); + service.removeConfig(service.getSubjectFactory(subjectClassKey).createSubject(subjectKey)); return Response.noContent().build(); }