Fix bug in PCE picking wrong client port 59/99459/16
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 26 Jan 2022 08:14:05 +0000 (09:14 +0100)
committerguillaume.lambert <guillaume.lambert@orange.com>
Thu, 10 Feb 2022 17:54:10 +0000 (18:54 +0100)
commit895f3e89b3c2554e704f74c764d23d5b79bf0862
tree873e7399dfadd92b89d58e6190bde4ee7b984ec3
parent04dc7aa524f9912005ba3bb07dba4b08dbb10a5a
Fix bug in PCE picking wrong client port

- Instead of systematically picking the first available client port
compatible with the service, pick the client port provided by the input
request parameters when specified.
- Update existing node validation to pick only endpoints with tail
- Fix a bug in otn intermediate switch functional test suite.
- Remove from tapi-connectivity impl few lines of strange code that
seems being wrong since it was replacing the client port-name specified
in the request by its associated network port-name, what was making
Ethernet service creation failing.

JIRA: TRNSPRTPCE-460
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ic3f1203f62fa19db46935524200c47f74611187c
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceCalculation.java
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNode.java
pce/src/test/java/org/opendaylight/transportpce/pce/graph/PceGraphTest.java
pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceLinkTest.java
pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNodeTest.java
tapi/src/main/java/org/opendaylight/transportpce/tapi/connectivity/ConnectivityUtils.java
tests/transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py