- if (cntp1.getTpType() == OpenroadmTpType.XPONDERNETWORK) {
- if (nttp1 != null && nttp1.getXpdrNetworkAttributes().getWavelength() != null) {
- this.usedXpndrNWTps.add(tp.getTpId().getValue());
- LOG.info("initXndrTps: XPONDER tp = {} is used", tp.getTpId().getValue());
- } else {
- this.valid = true;
- }
- // find Client of this network TP
- String client;
- org.opendaylight.yang.gen.v1.http.transportpce.topology.rev201019.TerminationPoint1 tpceTp1 =
- tp.augmentation(org.opendaylight.yang.gen.v1.http.transportpce.topology.rev201019
- .TerminationPoint1.class);
- if (tpceTp1 != null) {
- client = tpceTp1.getAssociatedConnectionMapPort();
- if (client != null) {
- this.clientPerNwTp.put(tp.getTpId().getValue(), client);
- this.valid = true;
- } else {
- LOG.error("initXndrTps: XPONDER {} NW TP doesn't have defined Client {}",
- this, tp.getTpId().getValue());
- }
- } else if (ServiceFormat.OTU.equals(serviceFormat)) {
- LOG.info("Infrastructure OTU4 connection");
+ if (nttp1 != null && nttp1.getXpdrNetworkAttributes().getWavelength() != null) {
+ this.usedXpndrNWTps.add(tp.getTpId().getValue());
+ LOG.info("initXndrTps: XPONDER tp = {} is used", tp.getTpId().getValue());
+ } else {
+ this.valid = true;
+ }
+ // find Client of this network TP
+ String client;
+ org.opendaylight.yang.gen.v1.http.transportpce.topology.rev220123.TerminationPoint1 tpceTp1 =
+ tp.augmentation(org.opendaylight.yang.gen.v1.http.transportpce.topology.rev220123
+ .TerminationPoint1.class);
+ if (tpceTp1 != null) {
+ client = tpceTp1.getAssociatedConnectionMapPort();
+ if (client != null) {
+ this.clientPerNwTp.put(tp.getTpId().getValue(), client);