From: Vachhani, Shweta (sv111y) Date: Thu, 10 Jun 2021 21:46:22 +0000 (-0400) Subject: Fix OLM timer for Roadm crossconnect power setup X-Git-Tag: 4.0.0~46 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F96509%2F6;p=transportpce.git Fix OLM timer for Roadm crossconnect power setup Current timer is 2 mins of warm up time. The value recommended by OpenROADM device white paper is 20 seconds. JIRA: TRNSPRTPCE-480 Signed-off-by: Vachhani, Shweta (sv111y) Change-Id: I5e8ac03892e9d1c36214733967dc721f504d6542 --- diff --git a/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmtImpl.java b/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmtImpl.java index d569e6ded..31a56d8ac 100644 --- a/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmtImpl.java +++ b/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmtImpl.java @@ -332,12 +332,13 @@ public class PowerMgmtImpl implements PowerMgmt { LOG.info("Success Value is {}", setXconnPowerSuccessVal); if (setXconnPowerSuccessVal) { LOG.info("Roadm-connection: {} updated ", connectionNumber); - //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 - Thread.sleep(OlmUtils.OLM_TIMER_1); + Thread.sleep(OlmUtils.OLM_TIMER_2); crossConnect.setPowerLevel(nodeId, OpticalControlMode.GainLoss.getName(), powerValue, connectionNumber); + //TODO make this timer value configurable via OSGi blueprint + // although the value recommended by the white paper is 20 seconds. + // At least one vendor product needs 60 seconds + // because it is not supporting GainLoss with target-output-power. } else { LOG.info("Set Power failed for Roadm-connection: {} on Node: {}", connectionNumber, nodeId);