Measure and set spanloss with one fractional digit 28/91128/1
authorJonas Mårtensson <jonas.martensson@ri.se>
Sun, 31 May 2020 18:39:11 +0000 (20:39 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Fri, 10 Jul 2020 13:09:47 +0000 (15:09 +0200)
commit10713fb2ef924fc4b0d89aa98fd04b8805da38d4
treefe54c94a21feaf934c0ab7556b28d54aed4eb07e
parent0b6122a85487144f423d6374e6f9e45b07f0ab71
Measure and set spanloss with one fractional digit

Currently spanloss is measured and set without any fractional digits.
This patch proposes to use one fractional digit for more precise
calculation of target power value.

Unit tests and functional tests have been updated with the more precise
spanloss and power values.

Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
Change-Id: I7b7aba070f7ecf7894c89de9807b686f75eecfeb
olm/src/main/java/org/opendaylight/transportpce/olm/service/OlmPowerServiceImpl.java
olm/src/test/java/org/opendaylight/transportpce/olm/service/OlmPowerServiceImplSpanLossBaseTest.java
tests/transportpce_tests/1.2.1/test_olm.py
tests/transportpce_tests/2.2.1/test_olm.py