Add protection on Xponder-in/out link creation 21/95321/3
authorChristophe Betoule <christophe.betoule@orange.com>
Thu, 11 Feb 2021 09:30:00 +0000 (10:30 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 23 Feb 2021 14:12:23 +0000 (14:12 +0000)
commit0fe11ab272d71ec93456778b8293818b597e1c9d
treec5669d6a773e745c5078d7d5218e025237be8d97
parentcc2d9a48e1a7084f27dd9807612480c5ddb299df
Add protection on Xponder-in/out link creation

- avoid NPE when attempting to create an xponder-in/out link terminating
on an unexisting TP
- remove unnecessary log message

JIRA: TRNSPRTPCE-397
Signed-off-by: Christophe Betoule <christophe.betoule@orange.com>
Co-authored-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I0f5ce99078872a487dfcd28f9f29f522c329079c
(cherry picked from commit d48474417b7498e4b1ca09dc61fa008cdd9ca95a)
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/NetworkUtilsImpl.java
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/Rdm2XpdrLink.java