Fix PCE bug to select the path proposed by GNPy 54/108654/5
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 25 Oct 2023 11:30:09 +0000 (13:30 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Thu, 9 Nov 2023 07:52:46 +0000 (08:52 +0100)
commit1f526e901ac556cff9914b3c001c852db3b555e4
tree741dcfe95adb596ec968c73df58d3f2d3aaf436d
parentfdc2f0f2a9e6d88925223877993981eb5ceffd99
Fix PCE bug to select the path proposed by GNPy

Introduce the "loose" or "strict" mode to differentiate two ways to
manage include node constraints: either the path must simply include
some nodes whatever the order of node inside the list is, or the path
must be exactly equal to the list of nodes.

JIRA: TRNSPRTPCE-769
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I34c0e3491fc341af3de0ff5b0dc702f40c7dd653
pce/src/main/java/org/opendaylight/transportpce/pce/PceSendingPceRPCs.java
pce/src/main/java/org/opendaylight/transportpce/pce/graph/PceGraph.java
pce/src/main/java/org/opendaylight/transportpce/pce/graph/PostAlgoPathValidator.java
pce/src/test/java/org/opendaylight/transportpce/pce/graph/PceGraphTest.java