handle OLM when spanloss > 28dB 60/83460/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 12 Jun 2019 15:44:46 +0000 (17:44 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Tue, 6 Aug 2019 14:32:50 +0000 (16:32 +0200)
commit759e84aaba10eee4f62bf763b2e10c3d477593fa
tree83e839f68fc7f008e95d05425958d5859c4560bf
parent0e0dec13ec613fa6c01155ae7eb66b25e05961d5
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