- 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 =
+ if (cntp1.getTpType() != OpenroadmTpType.XPONDERNETWORK) {
+ LOG.warn("initXndrTps: {} is not an Xponder network port", cntp1.getTpType().getName());
+ continue;
+ }
+ if (!State.InService.equals(cntp1.getOperationalState())) {
+ LOG.warn("initXndrTps: XPONDER tp = {} is OOS/degraded", tp.getTpId().getValue());
+ this.valid = false;
+ continue;
+ }
+ 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 =