- notifLink.getZTermination().getNodeId(), notifLink.getZTermination().getTpId(), linkType);
- links.addAll(updateOtnLinkBwParameters(supportedOtu4links, linkType));
- List<TerminationPoint> updatedTPs = new ArrayList<>();
- for (TerminationPoint tp : supportedTPs) {
- updatedTPs.add(updateTp(tp, true, linkType));
- }
- return new TopologyShard(null, links, updatedTPs);
- //TODO shouldn't other linkt type listed in otnLinkTypeBwMap be handled too ?
- default:
- return null;
+ notifLink.getZTermination().getNodeId(), notifLink.getZTermination().getTpId(), linkType));
+ } else if (otnLinkTypeBwMap.containsKey(linkType)) {
+ List<Link> links = initialiseOtnLinks(
+ notifLink.getATermination().getNodeId(), notifLink.getATermination().getTpId(),
+ notifLink.getZTermination().getNodeId(), notifLink.getZTermination().getTpId(), linkType);
+ links.addAll(updateOtnLinkBwParameters(supportedOtu4links, linkType));
+ List<TerminationPoint> updatedTPs = new ArrayList<>();
+ for (TerminationPoint tp : supportedTPs) {
+ updatedTPs.add(updateTp(tp, true, linkType));
+ }
+ return new TopologyShard(null, links, updatedTPs);
+ } else {
+ return null;