From: Gilles Thouenon Date: Thu, 5 Jul 2018 10:07:10 +0000 (+0200) Subject: Increase OLM timer to turn-up xc power in RDM node X-Git-Tag: v0.2.0~41 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=commitdiff_plain;h=42ce3c53239be2b47f819a59bc5bb712951c21fb Increase OLM timer to turn-up xc power in RDM node Increase a timer from 20s to 60s when the RDM node is in a "power" state to let it configure the optical power level of a cross-connection before moving to "gainLoss" state. NB: The value recommended in the openroadm whitepaper is normally 20s. Change-Id: Ife8153f11977844f2b074d118e1dcfe93858eb79 Signed-off-by: Gilles Thouenon Co-authored-by: Christophe Betoule --- diff --git a/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmt.java b/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmt.java index e7ab4f6cc..8cbb41def 100644 --- a/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmt.java +++ b/olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmt.java @@ -191,9 +191,10 @@ public class PowerMgmt { LOG.info("Success Value is {}", setXconnPowerSuccessVal); if (setXconnPowerSuccessVal) { LOG.info("Roadm-connection: {} updated "); + //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(20000); + Thread.sleep(60000); setPowerLevel(nodeId, OpticalControlMode.GainLoss, powerValue, connectionNumber); } else {