2 * Copyright © 2017 AT&T and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.transportpce.olm.power;
11 import java.math.BigDecimal;
12 import java.math.MathContext;
13 import java.math.RoundingMode;
14 import java.util.Arrays;
15 import java.util.HashMap;
16 import java.util.Locale;
18 import java.util.Optional;
19 import java.util.stream.Collectors;
20 import org.opendaylight.transportpce.common.crossconnect.CrossConnect;
21 import org.opendaylight.transportpce.common.device.DeviceTransactionManager;
22 import org.opendaylight.transportpce.common.fixedflex.GridConstant;
23 import org.opendaylight.transportpce.common.mapping.PortMapping;
24 import org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaceException;
25 import org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaces;
26 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.ServicePowerSetupInput;
27 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.ServicePowerTurndownInput;
28 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev231221.OpenroadmNodeVersion;
29 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev231221.mapping.Mapping;
30 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev231221.mapping.MappingKey;
31 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev231221.network.Nodes;
32 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.types.rev161014.OpticalControlMode;
33 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev170206.interfaces.grp.Interface;
34 import org.opendaylight.yang.gen.v1.http.org.openroadm.optical.transport.interfaces.rev161014.Interface1;
35 import org.opendaylight.yangtools.yang.common.Decimal64;
36 import org.osgi.service.component.annotations.Activate;
37 import org.osgi.service.component.annotations.Component;
38 import org.osgi.service.component.annotations.Reference;
39 import org.osgi.service.metatype.annotations.AttributeDefinition;
40 import org.osgi.service.metatype.annotations.ObjectClassDefinition;
41 import org.slf4j.Logger;
42 import org.slf4j.LoggerFactory;
44 @Component(configurationPid = "org.opendaylight.transportpce")
45 public class PowerMgmtImpl implements PowerMgmt {
47 @ObjectClassDefinition
48 public @interface Configuration {
50 long timer1() default 120000;
52 long timer2() default 20000;
54 private static final Logger LOG = LoggerFactory.getLogger(PowerMgmtImpl.class);
55 private final OpenRoadmInterfaces openRoadmInterfaces;
56 private final CrossConnect crossConnect;
57 private final DeviceTransactionManager deviceTransactionManager;
58 private final PortMapping portMapping;
59 private static final BigDecimal DEFAULT_TPDR_PWR_100G = new BigDecimal(-5);
60 private static final BigDecimal DEFAULT_TPDR_PWR_400G = new BigDecimal(0);
61 private static final String INTERFACE_NOT_PRESENT = "Interface {} on node {} is not present!";
62 private static final double MC_WIDTH_GRAN = 2 * GridConstant.GRANULARITY;
65 // openroadm spec value is 120000, functest value is 3000
67 // openroadm spec value is 20000, functest value is 2000
70 public PowerMgmtImpl(@Reference OpenRoadmInterfaces openRoadmInterfaces,
71 @Reference CrossConnect crossConnect,
72 @Reference DeviceTransactionManager deviceTransactionManager,
73 @Reference PortMapping portMapping, final Configuration configuration) {
74 this(openRoadmInterfaces, crossConnect, deviceTransactionManager, portMapping, configuration.timer1(),
75 configuration.timer2());
78 public PowerMgmtImpl(OpenRoadmInterfaces openRoadmInterfaces,
79 CrossConnect crossConnect, DeviceTransactionManager deviceTransactionManager,
80 PortMapping portMapping, long timer1, long timer2) {
81 this.openRoadmInterfaces = openRoadmInterfaces;
82 this.crossConnect = crossConnect;
83 this.deviceTransactionManager = deviceTransactionManager;
84 this.portMapping = portMapping;
86 this.timer1 = Long.valueOf(timer1);
87 } catch (NumberFormatException e) {
89 LOG.warn("Failed to retrieve Olm timer1 value from configuration - using default value {}",
93 this.timer2 = Long.valueOf(timer2);
94 } catch (NumberFormatException e) {
96 LOG.warn("Failed to retrieve Olm timer2 value from configuration - using default value {}",
99 LOG.debug("PowerMgmtImpl instantiated with olm timers = {} - {}", this.timer1, this.timer2);
103 * This methods measures power requirement for turning up a WL
104 * from the Spanloss at OTS transmit direction and update
105 * roadm-connection target-output-power.
108 * Input parameter from the olm servicePowerSetup rpc
110 * @return true/false based on status of operation.
112 //TODO Need to Case Optical Power mode/NodeType in case of 2.2 devices
113 public Boolean setPower(ServicePowerSetupInput input) {
114 LOG.info("Olm-setPower initiated for input {}", input);
115 String spectralSlotName = String.join(GridConstant.SPECTRAL_SLOT_SEPARATOR,
116 input.getLowerSpectralSlotNumber().toString(),
117 input.getHigherSpectralSlotNumber().toString());
118 if (input.getNodes() == null) {
119 LOG.error("No Nodes to configure");
122 for (int i = 0; i < input.getNodes().size(); i++) {
123 String nodeId = input.getNodes().get(i).getNodeId();
124 String destTpId = input.getNodes().get(i).getDestTp();
125 Nodes inputNode = this.portMapping.getNode(nodeId);
126 if (inputNode == null || inputNode.getNodeInfo() == null) {
127 LOG.error("OLM-PowerMgmtImpl : Error retrieving mapping node for {}", nodeId);
130 OpenroadmNodeVersion openroadmVersion = inputNode.getNodeInfo().getOpenroadmVersion();
132 switch (inputNode.getNodeInfo().getNodeType()) {
134 if (destTpId == null) {
137 LOG.info("Getting data from input node {}", inputNode.getNodeInfo().getNodeType());
138 LOG.info("Getting mapping data for node is {}",
139 inputNode.nonnullMapping().values().stream().filter(o -> o.key()
140 .equals(new MappingKey(destTpId))).findFirst().toString());
141 // If its not A-End transponder
142 if (!destTpId.toUpperCase(Locale.getDefault()).contains("NETWORK")) {
143 LOG.info("{} is a drop node. Net power settings needed", nodeId);
147 BigDecimal powerVal = getXpdrPowerValue(
148 inputNode, destTpId, nodeId, openroadmVersion.getIntValue(),
149 input.getNodes().get(i + 1).getSrcTp(), input.getNodes().get(i + 1).getNodeId());
150 if (powerVal == null) {
154 String interfaceName = String.join(GridConstant.NAME_PARAMETERS_SEPARATOR,
155 destTpId, spectralSlotName);
156 if (!callSetTransponderPower(nodeId, interfaceName, powerVal, openroadmVersion)) {
157 LOG.info("Transponder OCH connection: {} power update failed ", interfaceName);
160 LOG.info("Transponder OCH connection: {} power updated ", interfaceName);
162 LOG.info("Now going in sleep mode");
163 Thread.sleep(timer1);
164 } catch (InterruptedException e) {
165 LOG.info("Transponder warmup failed for OCH connection: {}", interfaceName, e);
166 // FIXME shouldn't it be LOG.warn or LOG.error?
167 // or maybe this try/catch block can simply be removed
171 LOG.info("This is a roadm {} device", openroadmVersion.getName());
172 String connectionNumber = String.join(GridConstant.NAME_PARAMETERS_SEPARATOR,
173 input.getNodes().get(i).getSrcTp(), destTpId, spectralSlotName);
174 LOG.info("Connection number is {}", connectionNumber);
176 // If Drop node leave node is power mode
177 if (destTpId.toUpperCase(Locale.getDefault()).contains("SRG")) {
178 LOG.info("Setting power at drop node");
179 crossConnect.setPowerLevel(nodeId, OpticalControlMode.Power.getName(), null, connectionNumber);
182 if (!destTpId.toUpperCase(Locale.getDefault()).contains("DEG")) {
185 // If Degree is transmitting end then set power
186 Optional<Mapping> mappingObjectOptional = inputNode.nonnullMapping()
187 .values().stream().filter(o -> o.key()
188 .equals(new MappingKey(destTpId))).findFirst();
189 if (mappingObjectOptional.isEmpty()) {
192 // TODO can it be return false rather than continue?
193 // in that case, mappingObjectOptional could be moved inside method getSpanLossTx()
194 LOG.info("Dest point is Degree {}", mappingObjectOptional.orElseThrow());
195 BigDecimal spanLossTx = getSpanLossTx(mappingObjectOptional.orElseThrow().getSupportingOts(),
196 destTpId, nodeId, openroadmVersion.getIntValue());
198 LOG.info("Spanloss TX is {}", spanLossTx);
199 // TODO: The span-loss limits should be obtained from optical specifications
200 if (spanLossTx == null || spanLossTx.intValue() < 0 || spanLossTx.intValue() > 27) {
201 LOG.error("Power Value is null: spanLossTx null or out of openROADM range [0,27] {}",
205 Decimal64 powerValue = Decimal64.valueOf(getRdmPowerValue(spanLossTx, input));
207 if (!crossConnect.setPowerLevel(nodeId, OpticalControlMode.Power.getName(), powerValue,
209 LOG.error("Set Power failed for Roadm-connection: {} on Node: {}",
210 connectionNumber, nodeId);
213 LOG.info("Roadm-connection: {} updated ", connectionNumber);
214 Thread.sleep(timer2);
215 // TODO make this timer value configurable via OSGi blueprint
216 // although the value recommended by the white paper is 20 seconds.
217 // At least one vendor product needs 60 seconds
218 // because it is not supporting GainLoss with target-output-power.
220 if (!crossConnect.setPowerLevel(nodeId, OpticalControlMode.GainLoss.getName(), powerValue,
222 LOG.error("Set GainLoss failed for Roadm-connection: {} on Node: {}",
223 connectionNumber, nodeId);
226 } catch (InterruptedException e) {
227 LOG.error("Olm-setPower wait failed :", e);
232 LOG.error("OLM-PowerMgmtImpl : Error with node type for node {}", nodeId);
239 private Map<String, Double> getTxPowerRangeMap(Nodes inputNode, String destTpId, String nodeId,
240 Integer openroadmVersion) {
242 Optional<Mapping> mappingObject = inputNode.nonnullMapping().values().stream()
243 .filter(o -> o.key().equals(new MappingKey(destTpId))).findFirst();
244 if (mappingObject.isEmpty()) {
245 LOG.info("Mapping object not found for nodeId: {}", nodeId);
246 // FIXME shouldn't it be LOG.error ?
248 // return null here means return false in setPower()
249 // TODO Align protections with getSRGRxPowerRangeMap
252 String circuitPackName = mappingObject.orElseThrow().getSupportingCircuitPackName();
253 String portName = mappingObject.orElseThrow().getSupportingPort();
254 switch (openroadmVersion) {
256 return PowerMgmtVersion121.getXponderPowerRange(circuitPackName, portName,
257 nodeId, deviceTransactionManager);
259 return PowerMgmtVersion221.getXponderPowerRange(circuitPackName, portName,
260 nodeId, deviceTransactionManager);
262 return PowerMgmtVersion710.getXponderPowerRange(circuitPackName, portName,
263 nodeId, deviceTransactionManager);
265 LOG.error("Unrecognized OpenRoadm version");
266 return new HashMap<>();
267 // FIXME shouldn't it lead to a return false in setPower()?
272 private Map<String, Double> getSRGRxPowerRangeMap(String srgId, String nodeId, Integer openroadmVersion) {
274 Nodes inputNode = this.portMapping.getNode(nodeId);
275 int rdmOpenroadmVersion = inputNode.getNodeInfo().getOpenroadmVersion().getIntValue();
276 Optional<Mapping> mappingObject = inputNode.nonnullMapping().values().stream()
277 .filter(o -> o.key().equals(new MappingKey(srgId)))
280 if (mappingObject.isEmpty()) {
281 return new HashMap<>();
282 // FIXME shouldn't it lead to a return false in setPower() ?
285 String circuitPackName = mappingObject.orElseThrow().getSupportingCircuitPackName();
286 String portName = mappingObject.orElseThrow().getSupportingPort();
287 switch (rdmOpenroadmVersion) {
289 return PowerMgmtVersion121.getSRGRxPowerRange(nodeId, srgId,
290 deviceTransactionManager, circuitPackName, portName);
292 return PowerMgmtVersion221.getSRGRxPowerRange(nodeId, srgId,
293 deviceTransactionManager, circuitPackName, portName);
295 return PowerMgmtVersion710.getSRGRxPowerRange(nodeId, srgId,
296 deviceTransactionManager, circuitPackName, portName);
298 LOG.error("Unrecognized OpenRoadm version");
300 //return null here means return false in setPower()
301 // TODO Align protections with getTxPowerRangeMap
305 private BigDecimal getSpanLossTx(String supportingOts, String destTpId, String nodeId, Integer openroadmVersion) {
307 switch (openroadmVersion) {
309 Optional<Interface> interfaceOpt =
310 this.openRoadmInterfaces.getInterface(nodeId, supportingOts);
311 if (interfaceOpt.isEmpty()) {
312 LOG.error(INTERFACE_NOT_PRESENT, supportingOts, nodeId);
315 if (interfaceOpt.orElseThrow().augmentation(Interface1.class).getOts()
316 .getSpanLossTransmit() == null) {
317 LOG.error("interface {} has no spanloss value", interfaceOpt.orElseThrow().getName());
320 return interfaceOpt.orElseThrow()
321 .augmentation(Interface1.class)
322 .getOts().getSpanLossTransmit().getValue().decimalValue();
324 Optional<org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019
325 .interfaces.grp.Interface> interfaceOpt1 =
326 this.openRoadmInterfaces.getInterface(nodeId, supportingOts);
327 if (interfaceOpt1.isEmpty()) {
328 LOG.error(INTERFACE_NOT_PRESENT, supportingOts, nodeId);
331 if (interfaceOpt1.orElseThrow().augmentation(org.opendaylight.yang.gen.v1.http.org
332 .openroadm.optical.transport.interfaces.rev181019.Interface1.class).getOts()
333 .getSpanLossTransmit() == null) {
334 LOG.error("interface {} has no spanloss value", interfaceOpt1.orElseThrow().getName());
337 return interfaceOpt1.orElseThrow()
338 .augmentation(org.opendaylight.yang.gen.v1.http.org
339 .openroadm.optical.transport.interfaces.rev181019.Interface1.class)
340 .getOts().getSpanLossTransmit().getValue().decimalValue();
345 } catch (OpenRoadmInterfaceException ex) {
346 LOG.error("Failed to get interface {} from node {}!",
347 supportingOts, nodeId, ex);
349 } catch (IllegalArgumentException ex) {
350 LOG.error("Failed to get non existing interface {} from node {}!",
351 supportingOts, nodeId);
356 private BigDecimal getXpdrPowerValue(Nodes inputNode, String destTpId, String nodeId, Integer openroadmVersion,
357 String srgId, String nextNodeId) {
359 Map<String, Double> txPowerRangeMap = getTxPowerRangeMap(inputNode, destTpId, nodeId, openroadmVersion);
360 if (txPowerRangeMap == null) {
362 // return null here means return false in setPower()
364 BigDecimal powerVal =
365 openroadmVersion == 3 ? DEFAULT_TPDR_PWR_400G : DEFAULT_TPDR_PWR_100G;
366 if (txPowerRangeMap.isEmpty()) {
367 LOG.info("Tranponder range not available setting to default power for nodeId: {}", nodeId);
371 Map<String, Double> rxSRGPowerRangeMap = getSRGRxPowerRangeMap(srgId, nextNodeId, openroadmVersion);
372 if (rxSRGPowerRangeMap == null) {
374 // return null here means return false in setPower()
375 // TODO empty txPowerRangeMap + null rxSRGPowerRangeMap is allowed
376 // => confirm this behavior is OK
378 if (rxSRGPowerRangeMap.isEmpty()) {
379 LOG.info("SRG Power Range not found, setting the Transponder range to default");
383 powerVal = new BigDecimal(txPowerRangeMap.get("MaxTx"))
384 .min(new BigDecimal(rxSRGPowerRangeMap.get("MaxRx")));
385 LOG.info("Calculated Transponder Power value is {}" , powerVal);
390 private BigDecimal getRdmPowerValue(BigDecimal spanLossTx, ServicePowerSetupInput input) {
391 // TODO: These values will be obtained from the specifications
392 // power-value here refers to the Pin[50GHz]
393 BigDecimal powerValue;
394 if (spanLossTx.doubleValue() >= 23.0) {
395 powerValue = BigDecimal.valueOf(2.0);
396 } else if (spanLossTx.doubleValue() >= 8.0) {
397 powerValue = BigDecimal.valueOf(- (8.0 - spanLossTx.doubleValue()) / 3.0 - 3.0);
398 } else if (spanLossTx.doubleValue() >= 6.0) {
399 powerValue = BigDecimal.valueOf(-3.0);
401 powerValue = spanLossTx.subtract(BigDecimal.valueOf(9));
403 BigDecimal mcWidth = new BigDecimal(50);
404 // we work at constant power spectral density (50 GHz channel width @-20dBm=37.5GHz)
405 // 87.5 GHz channel width @-20dBm=75GHz
406 if (input.getMcWidth() != null) {
407 // Units of MC-width are in GHz, meaning it should be 40/50/87.5GHz
408 // TODO: Should we validate this units before proceeding?
409 LOG.debug("Input Grid size is {}", input.getMcWidth().getValue());
411 // We round-off the mc-width to the nearest grid-value based on the granularity of 12.5 GHz
412 double nbrMcSlots = Math.ceil(input.getMcWidth().getValue().doubleValue() / MC_WIDTH_GRAN);
413 LOG.debug("Nearest (ceil) number of slots {}", nbrMcSlots);
414 mcWidth = new BigDecimal(MC_WIDTH_GRAN * nbrMcSlots);
415 LOG.debug("Given mc-width={}, Rounded mc-width={}", input.getMcWidth().getValue(), mcWidth);
417 BigDecimal logVal = mcWidth.divide(new BigDecimal(50));
418 double pdsVal = 10 * Math.log10(logVal.doubleValue());
419 // Addition of PSD value will give Pin[87.5 GHz]
420 powerValue = powerValue.add(new BigDecimal(pdsVal, new MathContext(3, RoundingMode.HALF_EVEN)));
422 // FIXME compliancy with OpenROADM MSA and approximations used -- should be addressed with powermask update
423 // cf JIRA ticket https://jira.opendaylight.org/browse/TRNSPRTPCE-494
424 powerValue = powerValue.setScale(2, RoundingMode.CEILING);
425 // target-output-power yang precision is 2, so we limit here to 2
426 LOG.info("The power value is P1[{}GHz]={} dB for spanloss {}", mcWidth, powerValue, spanLossTx);
431 * This methods turns down power a WL by performing
435 * 1. Pull interfaces used in service and change
436 * status to outOfService
439 * 2. For each of the ROADM node set target-output-power
440 * to -60dbm, wait for 20 seconds, turn power mode to off
443 * 3. Turn down power in Z to A direction and A to Z
446 * Input parameter from the olm servicePowerTurndown rpc
448 * @return true/false based on status of operation
450 public Boolean powerTurnDown(ServicePowerTurndownInput input) {
451 LOG.info("Olm-powerTurnDown initiated for input {}", input);
452 /*Starting with last element into the list Z -> A for
453 turning down A -> Z */
454 String spectralSlotName = String.join(GridConstant.SPECTRAL_SLOT_SEPARATOR,
455 input.getLowerSpectralSlotNumber().toString(),
456 input.getHigherSpectralSlotNumber().toString());
457 for (int i = input.getNodes().size() - 1; i >= 0; i--) {
458 String nodeId = input.getNodes().get(i).getNodeId();
459 String destTpId = input.getNodes().get(i).getDestTp();
460 String connectionNumber = String.join(GridConstant.NAME_PARAMETERS_SEPARATOR,
461 input.getNodes().get(i).getSrcTp(), destTpId, spectralSlotName);
463 if (destTpId.toUpperCase(Locale.getDefault()).contains("DEG")) {
464 if (!crossConnect.setPowerLevel(nodeId, OpticalControlMode.Power.getName(),
465 Decimal64.valueOf("-60"), connectionNumber)) {
466 LOG.warn("Power down failed for Roadm-connection: {}", connectionNumber);
469 Thread.sleep(timer2);
470 if (!crossConnect.setPowerLevel(nodeId, OpticalControlMode.Off.getName(), null, connectionNumber)) {
471 LOG.warn("Setting power-control mode off failed for Roadm-connection: {}", connectionNumber);
474 } else if (destTpId.toUpperCase(Locale.getDefault()).contains("SRG")) {
475 if (!crossConnect.setPowerLevel(nodeId, OpticalControlMode.Off.getName(), null, connectionNumber)) {
476 LOG.warn("Setting power-control mode off failed for Roadm-connection: {}", connectionNumber);
477 // FIXME a return false would allow sync with DEG case but makes current Unit tests fail
480 } catch (InterruptedException e) {
481 // TODO Auto-generated catch block
482 LOG.error("Olm-powerTurnDown wait failed: ",e);
490 * This method retrieves transponder OCH interface and
494 * Unique identifier for the mounted netconf- node
495 * @param interfaceName
496 * OCH interface name carrying WL
498 * Calculated transmit power
499 * @param openroadmVersion
500 * Version of openRoadm device software
501 * @return true/false based on status of operation
503 private boolean callSetTransponderPower(String nodeId, String interfaceName, BigDecimal txPower,
504 OpenroadmNodeVersion openroadmVersion) {
506 boolean powerSetupResult = false;
508 switch (openroadmVersion.getIntValue()) {
510 Optional<Interface> interfaceOptional121 =
511 openRoadmInterfaces.getInterface(nodeId, interfaceName);
512 if (interfaceOptional121.isEmpty()) {
513 LOG.error(INTERFACE_NOT_PRESENT, interfaceName, nodeId);
516 powerSetupResult = PowerMgmtVersion121.setTransponderPower(nodeId, interfaceName,
517 txPower, deviceTransactionManager, interfaceOptional121.orElseThrow());
520 Optional<org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.interfaces.grp
521 .Interface> interfaceOptional221 =
522 openRoadmInterfaces.getInterface(nodeId, interfaceName);
523 if (interfaceOptional221.isEmpty()) {
524 LOG.error(INTERFACE_NOT_PRESENT, interfaceName, nodeId);
527 powerSetupResult = PowerMgmtVersion221.setTransponderPower(nodeId, interfaceName,
528 txPower, deviceTransactionManager, interfaceOptional221.orElseThrow());
531 Optional<org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev200529.interfaces.grp
532 .Interface> interfaceOptional710 =
533 openRoadmInterfaces.getInterface(nodeId, interfaceName);
534 if (interfaceOptional710.isEmpty()) {
535 LOG.error(INTERFACE_NOT_PRESENT, interfaceName, nodeId);
538 // Check the support-interface-cap type
539 // Get the logical connection point name from the interface-name, by splitting it by "-"
540 // and discard the last part. For instance XPDR1-NETWORK1-xxx:xxx
541 String logicalConnectionPoint =
542 Arrays.stream(interfaceName.split("-", 3)).limit(2).collect(Collectors.joining("-"));
543 LOG.info("Logical connection point {} for Interface {}", logicalConnectionPoint, interfaceName);
544 Mapping portMap = portMapping.getMapping(nodeId, logicalConnectionPoint);
545 if (portMap == null) {
546 throw new OpenRoadmInterfaceException(
547 OpenRoadmInterfaceException.mapping_msg_err(nodeId, logicalConnectionPoint));
549 powerSetupResult = PowerMgmtVersion710.setTransponderPower(nodeId, interfaceName,
550 txPower, deviceTransactionManager, interfaceOptional710.orElseThrow(), portMap);
553 LOG.error("Unrecognized OpenRoadm version");
556 } catch (OpenRoadmInterfaceException ex) {
557 LOG.error("Failed to get interface {} from node {}!", interfaceName, nodeId, ex);
560 if (!powerSetupResult) {
561 LOG.debug("Transponder power setup failed for nodeId {} on interface {}",
562 nodeId, interfaceName);
565 LOG.debug("Transponder power set up completed successfully for nodeId {} and interface {}",
566 nodeId,interfaceName);