Abort power setup if setting gainloss fails 80/111480/3
authorJonas Mårtensson <jonas.martensson@smartoptics.com>
Mon, 22 Apr 2024 12:25:34 +0000 (12:25 +0000)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 6 May 2024 11:01:59 +0000 (11:01 +0000)
commit03cb5b1208c6105fcf516fb6e5cbfd06d1549c87
tree32b351d20eeccd3e17e84832dbb567b895774833
parenteb721726f4aa33b9eba8d087770aa8864c5d349d
Abort power setup if setting gainloss fails

Currently, if changing control mode from power to gainloss fails on a
device, e.g. because it becomes disconnected, power setup just
continues with the next node.

This changes behaviour so that power setup is aborted instead and
service creation is rolled back.

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