Fix bug in PCE picking wrong client port 15/99615/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 26 Jan 2022 08:14:05 +0000 (09:14 +0100)
committerChristophe BETOULE <christophe.betoule@orange.com>
Mon, 14 Feb 2022 14:56:48 +0000 (14:56 +0000)
commit78151e96e75e12dbce59c9a50758d2278fbe5fa4
tree88c7730f30fd2e3d6e9e8f72a5c176a56ff89d31
parent51190fdd7f2e4c980f4412b6404fc683d61c1f70
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
(cherry picked from commit 895f3e89b3c2554e704f74c764d23d5b79bf0862)
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