Increase OLM timer to turn-up xc power in RDM node
[transportpce.git] / olm / src / main / java / org / opendaylight / transportpce / olm / power / PowerMgmt.java
index e7ab4f6ccf46ad6faa97604eedee6f6a99652e9e..8cbb41def5c12b08c0255025ea1ac3c48f324bb0 100644 (file)
@@ -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 {