handle OLM when spanloss > 28dB 07/82507/10
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 12 Jun 2019 15:44:46 +0000 (17:44 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 19 Jun 2019 14:42:15 +0000 (14:42 +0000)
commit429ff025994ee657d29dca62b044d604e24d7d48
tree668da5a9801259c74819b1664d3f8ee9004f3123
parent86c3b4e94cf42967e57427d1b0ca1ea5c3b7f3ca
handle OLM when spanloss > 28dB

- when calculated spanloss is out of OpenROADM range ( = ]0-28] dB),
  it is all the same set in the OTS interface.
- when the spanloss is greater than 28 dB ,
  the OLM servicePowerSetup fails and triggers the rollback of
  roadm-connection interfaces already configured by the renderer.
- Change OlmServiceStub to result value to success

NB: OpenROADM specifies that spanloss must be < 27 dB but there is 1 dB
of tolerance in the measurement accuracy.
Thus the supported range for spanloss = ]0,28] dB.

Change-Id: Ibae4357bde37ba78fc5bface060099f4bb7be0b6
JIRA: TRNSPRTPCE-90
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/PowerMgmtImpl.java
olm/src/main/java/org/opendaylight/transportpce/olm/service/OlmPowerServiceImpl.java
renderer/src/main/java/org/opendaylight/transportpce/renderer/provisiondevice/tasks/OlmPowerSetupTask.java
renderer/src/test/java/org/opendaylight/transportpce/renderer/stub/OlmServiceStub.java