X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Ftopology%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ftopology%2Fnorthbound%2FTopologyNorthboundJAXRS.java;h=508ffafe6fdf8f1a1a5fff4466ee54e0f0862da9;hb=468405c27b007e896bf12713651ae383740b6c2c;hp=c20cb26885006f0f5a3234466bfb4445ed641033;hpb=119b994019d7c8b9af8f65e200e8afa68baa2b6e;p=controller.git diff --git a/opendaylight/northbound/topology/src/main/java/org/opendaylight/controller/topology/northbound/TopologyNorthboundJAXRS.java b/opendaylight/northbound/topology/src/main/java/org/opendaylight/controller/topology/northbound/TopologyNorthboundJAXRS.java index c20cb26885..508ffafe6f 100644 --- a/opendaylight/northbound/topology/src/main/java/org/opendaylight/controller/topology/northbound/TopologyNorthboundJAXRS.java +++ b/opendaylight/northbound/topology/src/main/java/org/opendaylight/controller/topology/northbound/TopologyNorthboundJAXRS.java @@ -200,8 +200,7 @@ public class TopologyNorthboundJAXRS { if (topo != null) { List res = new ArrayList(); for (Map.Entry> entry : topo.entrySet()) { - EdgeProperties el = new EdgeProperties(entry.getKey(), - entry.getValue()); + EdgeProperties el = new EdgeProperties(entry.getKey(), entry.getValue()); res.add(el); } return new Topology(res); @@ -316,7 +315,7 @@ public class TopologyNorthboundJAXRS { @ResponseCode(code = 503, condition = "One or more of Controller services are unavailable") }) public Response addUserLink( @PathParam(value = "containerName") String containerName, - @TypeHint(TopologyUserLinkConfig.class) JAXBElement userLinkConfig) { + @TypeHint(TopologyUserLinkConfig.class) TopologyUserLinkConfig userLinkConfig) { if (!NorthboundUtils.isAuthorized( getUserName(), containerName, Privilege.WRITE, this)) { @@ -331,9 +330,9 @@ public class TopologyNorthboundJAXRS { RestMessages.NOCONTAINER.toString()); } - Status status = topologyManager.addUserLink(userLinkConfig.getValue()); + Status status = topologyManager.addUserLink(userLinkConfig); if (status.isSuccess()) { - NorthboundUtils.auditlog("User Link", username, "added", userLinkConfig.getValue().getName(), containerName); + NorthboundUtils.auditlog("User Link", username, "added", userLinkConfig.getName(), containerName); return Response.status(Response.Status.CREATED).build(); } throw new InternalServerErrorException(status.getDescription());