Increase OLM timer to turn-up xc power in RDM node 73/73773/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Thu, 5 Jul 2018 10:07:10 +0000 (12:07 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Thu, 5 Jul 2018 10:17:21 +0000 (12:17 +0200)
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.

Change-Id: Ife8153f11977844f2b074d118e1dcfe93858eb79
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Co-authored-by: Christophe Betoule <christophe.betoule@orange.com>
olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmt.java

index e7ab4f6ccf46ad6faa97604eedee6f6a99652e9e..717b5efc82d3e379f8acfc969f59aa497d0d8a89 100644 (file)
@@ -193,7 +193,7 @@ public class PowerMgmt {
                                     LOG.info("Roadm-connection: {} updated ");
                                     //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 {