X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Ftapi%2Futils%2FTapiContext.java;fp=tapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Ftapi%2Futils%2FTapiContext.java;h=045577c1fb29fdcf5c54b28af39fe70bd682456a;hb=a953e548bf75c5bb11a91042a7501404e840c88a;hp=cd48f0f61f4bd8f25c57b50a20b0ab99dd27a668;hpb=e48ae3b1908b008cb15225bb18a49a17b46504a4;p=transportpce.git diff --git a/tapi/src/main/java/org/opendaylight/transportpce/tapi/utils/TapiContext.java b/tapi/src/main/java/org/opendaylight/transportpce/tapi/utils/TapiContext.java index cd48f0f61..045577c1f 100644 --- a/tapi/src/main/java/org/opendaylight/transportpce/tapi/utils/TapiContext.java +++ b/tapi/src/main/java/org/opendaylight/transportpce/tapi/utils/TapiContext.java @@ -262,6 +262,8 @@ public class TapiContext { } // TODO -> Need to remove CEPs from NEPs. If not error from get Topology details output Node node = optNode.get(); + LOG.debug("NEPs of node before creating map to be returned to the getTapiNode function = {}", + node.getOwnedNodeEdgePoint().size()); Map onepMap = new HashMap<>(); for (OwnedNodeEdgePoint onep: node.getOwnedNodeEdgePoint().values()) { if (onep.augmentation(OwnedNodeEdgePoint1.class) == null) { @@ -283,8 +285,11 @@ public class TapiContext { if (onep.getMappedServiceInterfacePoint() != null) { newOnepBuilder.setMappedServiceInterfacePoint(onep.getMappedServiceInterfacePoint()); } - onepMap.put(newOnepBuilder.key(), newOnepBuilder.build()); + OwnedNodeEdgePoint newOnep = newOnepBuilder.build(); + onepMap.put(newOnep.key(), newOnep); } + LOG.debug("NEPs of node after creating map to be returned to the getTapiNode function = {}", + onepMap.size()); return new NodeBuilder(node) .setOwnedNodeEdgePoint(onepMap) .build();