Read all LLDP neighbours even if one fails 96/89596/3
authorJonas Mårtensson <jonas.martensson@ri.se>
Tue, 5 May 2020 06:48:06 +0000 (08:48 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 12 May 2020 12:53:12 +0000 (12:53 +0000)
commitd168c9032e59e4580ebdc59b9473598ff0159803
treee1bc2d6c50dd9ff387d3cb239ad2e6abf2462db4
parent93af0da42e5e9e5b797b76c59fa568810df7f9ba
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