Fix Unreserved Bandwidth verification in algo 02/91202/2
authorOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 10 Jul 2020 15:21:03 +0000 (17:21 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 13 Jul 2020 12:24:17 +0000 (12:24 +0000)
commit0d9eadca7b948a6090130de51f80eac845afbf9d
tree550f3efe1b73cb01bd4495f2c2ca14171acd819c
parent775e4db94b0637d69dd1dabde451f09d0c9ee4ff
Fix Unreserved Bandwidth verification in algo

Path Computation Algorithms assume that Unreserved Bandwidth values are
ordered by Class-Type priority which could be wrong. This patch set correct
this issue by searching the correct Unreserved Bandwidth value that corresponds
to the Class-Type instead of directly addressing the Unreserved Bandwidth list
with the Class-Type as index.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Change-Id: I02c03c18cfe2eee2451f05739bf6df9ce6995a38
algo/algo-impl/src/main/java/org/opendaylight/algo/impl/AbstractPathComputation.java