Read all LLDP neighbours even if one fails 96/91096/1
authorJonas Mårtensson <jonas.martensson@ri.se>
Tue, 5 May 2020 06:48:06 +0000 (08:48 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Fri, 10 Jul 2020 12:41:10 +0000 (14:41 +0200)
commit10c047bb8b7d93df9c9d0141ff16974cc0deb399
tree6068b3aef4f02ee182ae74d0a1f890fa5b115a35
parent57e72c9a6325ccead6c9387fd0ba1bca668f8c60
Read all LLDP neighbours even if one fails

Currently in the readLLDP function, when looping over all neighbours in
nbrList, if createR2RLink for one neighbour fails, the whole function
returns which means that the rest of the neighbors in nbrList are never
processed. I think it makes more sense to continue the loop and create
R2R links for other neighbors. This patch proposes to do that while
still returning false if one createR2RLink fails.

Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
Change-Id: I73d587cc52c1b11e449baf3c69c9179a7dc2483d
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/R2RLinkDiscovery.java