LOG.info("Transponder OCH connection: {} power updated ", interfaceName);
try {
LOG.info("Now going in sleep mode");
LOG.info("Transponder OCH connection: {} power updated ", interfaceName);
try {
LOG.info("Now going in sleep mode");
} catch (InterruptedException e) {
LOG.info("Transponder warmup failed for OCH connection: {}", interfaceName, e);
}
} catch (InterruptedException e) {
LOG.info("Transponder warmup failed for OCH connection: {}", interfaceName, e);
}
if (callSetTransponderPower(nodeId, interfaceName, new BigDecimal(-5),openroadmVersion)) {
LOG.info("Transponder OCH connection: {} power updated ", interfaceName);
try {
if (callSetTransponderPower(nodeId, interfaceName, new BigDecimal(-5),openroadmVersion)) {
LOG.info("Transponder OCH connection: {} power updated ", interfaceName);
try {
} catch (InterruptedException e) {
// TODO Auto-generated catch block
LOG.info("Transponder warmup failed for OCH connection: {}", interfaceName, e);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
LOG.info("Transponder warmup failed for OCH connection: {}", interfaceName, e);
//The value recommended by the white paper is 20 seconds and not 60.
//TODO - commented code because one vendor is not supporting
//GainLoss with target-output-power
//The value recommended by the white paper is 20 seconds and not 60.
//TODO - commented code because one vendor is not supporting
//GainLoss with target-output-power
crossConnect.setPowerLevel(nodeId, OpticalControlMode.GainLoss, powerValue,
connectionNumber);
} else {
crossConnect.setPowerLevel(nodeId, OpticalControlMode.GainLoss, powerValue,
connectionNumber);
} else {
if (! crossConnect.setPowerLevel(nodeId, OpticalControlMode.Off , null, connectionNumber)) {
LOG.warn("Setting power-control mode off failed for Roadm-connection: {}", connectionNumber);
return false;
if (! crossConnect.setPowerLevel(nodeId, OpticalControlMode.Off , null, connectionNumber)) {
LOG.warn("Setting power-control mode off failed for Roadm-connection: {}", connectionNumber);
return false;
LOG.info("Roadm-connection: {} updated ");
//TODO - commented code because one vendor is not supporting
//GainLoss with target-output-power
LOG.info("Roadm-connection: {} updated ");
//TODO - commented code because one vendor is not supporting
//GainLoss with target-output-power
crossConnect.setPowerLevel(nodeId,
OpticalControlMode.GainLoss, powerValue,connectionNumber);
return true;
crossConnect.setPowerLevel(nodeId,
OpticalControlMode.GainLoss, powerValue,connectionNumber);
return true;
LOG.info("Roadm-connection: {} updated ");
//TODO - commented code because one vendor is not supporting
//GainLoss with target-output-power
LOG.info("Roadm-connection: {} updated ");
//TODO - commented code because one vendor is not supporting
//GainLoss with target-output-power
crossConnect.setPowerLevel(nodeId,
OpticalControlMode.GainLoss, powerValue,connectionNumber);
return true;
crossConnect.setPowerLevel(nodeId,
OpticalControlMode.GainLoss, powerValue,connectionNumber);
return true;