+ // tgtNode srcTp is null in this if cond
+ String supportingOtuInterface = this.openRoadmInterfaceFactory
+ .createOpenRoadmOtu4Interface(nodeId, destTp, supportingOchInterface,
+ tgtNode.getNodeId(), tgtNode.getDestTp());
+ createdOtuInterfaces.add(supportingOtuInterface);
+ if (srcTp == null) {
+ otnNodesProvisioned.add(node);
+ } else {
+ createdOduInterfaces.add(this.openRoadmInterfaceFactory.createOpenRoadmOdu4Interface(nodeId,
+ destTp, supportingOtuInterface));
+ }
+ }
+ if ((srcTp != null) && srcTp.contains(StringConstants.CLIENT_TOKEN)) {
+ crossConnectFlag++;
+ // create OpenRoadm Xponder Client Interfaces
+ createdEthInterfaces.add(
+ this.openRoadmInterfaceFactory.createOpenRoadmEthInterface(nodeId, srcTp));
+ }
+ if ((srcTp != null) && srcTp.contains(StringConstants.NETWORK_TOKEN)) {
+ crossConnectFlag++;
+ // create OpenRoadm Xponder Line Interfaces
+ String supportingOchInterface;
+ if ((centerFreq != null) && (slotWidth != null)) {
+ supportingOchInterface = this.openRoadmInterfaceFactory.createOpenRoadmOchInterface(
+ nodeId, srcTp, waveNumber, ModulationFormat.DpQpsk, centerFreq, slotWidth);
+ }
+ else {
+ supportingOchInterface = this.openRoadmInterfaceFactory.createOpenRoadmOchInterface(
+ nodeId, srcTp, waveNumber, ModulationFormat.DpQpsk);
+ }
+ createdOchInterfaces.add(supportingOchInterface);
+ String supportingOtuInterface = this.openRoadmInterfaceFactory
+ .createOpenRoadmOtu4Interface(nodeId, srcTp, supportingOchInterface);
+ createdOtuInterfaces.add(supportingOtuInterface);
+ createdOduInterfaces.add(this.openRoadmInterfaceFactory.createOpenRoadmOdu4Interface(nodeId,
+ srcTp, supportingOtuInterface));
+ Mapping mapping = this.portMapping.getMapping(nodeId,srcTp);
+ if (mapping != null && mapping.getXponderType() != null
+ && (mapping.getXponderType().getIntValue() == 3
+ || mapping.getXponderType().getIntValue() == 2)) {
+ createdOduInterfaces.add(this.openRoadmInterfaceFactory
+ .createOpenRoadmOtnOdu4Interface(nodeId, destTp, supportingOtuInterface));
+ } else {
+ createdOduInterfaces.add(this.openRoadmInterfaceFactory.createOpenRoadmOdu4Interface(nodeId,
+ destTp, supportingOtuInterface));
+ }
+ }
+ if ((destTp != null) && destTp.contains(StringConstants.CLIENT_TOKEN)) {
+ crossConnectFlag++;
+ // create OpenRoadm Xponder Client Interfaces
+ createdEthInterfaces.add(
+ this.openRoadmInterfaceFactory.createOpenRoadmEthInterface(nodeId, destTp));
+ }
+ if ((srcTp != null) && (srcTp.contains(StringConstants.TTP_TOKEN)
+ || srcTp.contains(StringConstants.PP_TOKEN))) {
+ if ((centerFreq != null) && (slotWidth != null)) {
+ createdOchInterfaces.addAll(
+ this.openRoadmInterfaceFactory
+ .createOpenRoadmOchInterface(nodeId, srcTp, waveNumber, centerFreq, slotWidth));