Allow 0 dB spanloss in power management 02/110202/3
authorJonas Mårtensson <jonas.martensson@smartoptics.com>
Fri, 9 Feb 2024 08:07:45 +0000 (08:07 +0000)
committerGilles Thouenon <gilles.thouenon@orange.com>
Sat, 10 Feb 2024 08:23:21 +0000 (08:23 +0000)
commit24d436f1b7a0909804660afcfc2758d8c5cadc6a
treeccba573b1d96b56e78cd706dc9826e163cb0b5ce
parentb85bad9a029b9d35e307aece70641aa50f5e9617
Allow 0 dB spanloss in power management

Currently, power management, and therefore also service creation, fails
if any spanloss is 0 dB. There is nothing in the OpenROADM spec that
says 0 dB is out of range. The spanloss range is defined as:
Min: 0, Max: 27 dB

JIRA: TRNSPRTPCE-785
Signed-off-by: Jonas Mårtensson <jonas.martensson@smartoptics.com>
Change-Id: I62969b7cbe5c9ba06cdbfa51ee5db87c372479ea
olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmtImpl.java