Measure and set spanloss with one fractional digit 79/90179/3
authorJonas Mårtensson <jonas.martensson@ri.se>
Sun, 31 May 2020 18:39:11 +0000 (20:39 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 9 Jun 2020 14:51:55 +0000 (14:51 +0000)
commit0b7d7035d3affa2b9fc85d85d7c0b916e29ab799
tree954a45aa47c477d98c7e2aef9123af76b73b1338
parentce2fcf8821fbcbe8a117c236041f4a338a19810c
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