Handle missing LLDP nbr-list 22/103722/1
authorJonas Mårtensson <jonas.martensson@smartoptics.com>
Tue, 6 Sep 2022 07:04:59 +0000 (07:04 +0000)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 20 Dec 2022 14:29:53 +0000 (15:29 +0100)
commit36412df450db5f7941494cdf1abe156cc7f5ca68
treec151c78d883808c07fb752e7358fd7a86034f6a5
parent5ed3f6f47c24951a5c2e0c2e9d0674f25355a382
Handle missing LLDP nbr-list

In ROADM-to-ROADM link discovery, if LLDP subtree is present but
nbr-list is empty/missing, the code crashes from NullPointerException.

Check and return early if nbr-list is null.

JIRA: TRNSPRTPCE-709
Signed-off-by: Jonas Mårtensson <jonas.martensson@smartoptics.com>
Change-Id: I6dcb54e24445ac4c0fd0ff27e7335eb596307418
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/R2RLinkDiscovery.java
tapi/src/main/java/org/opendaylight/transportpce/tapi/R2RTapiLinkDiscovery.java