Align tapi topology states on OOR topology ones 28/95028/4
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 2 Feb 2021 17:56:19 +0000 (18:56 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Mon, 8 Feb 2021 09:20:39 +0000 (10:20 +0100)
commit553f3cec96eb67ddfccf13a096d11edd522f39f4
treefb9ea7bb01461d5d5040ae4a7a654ff72f25a1e6
parent6bb5391db7481775991661ae582ad9a3f6de1a77
Align tapi topology states on OOR topology ones

- convert administrative and operational states read from openroadm and
otn topologies to tapi states. Since tapi link is bidirectional, adapt
ConvertORTopoToTapiTopo and TapiTopologyImpl classes to take into acount
also states of opposite link (need to introduce Map instead of List in
some treatment)
- create new unitary tests in ConvertORTopoToTapiTopoTest.java to check
this new treatment

JIRA: TRNSPRTPCE-382
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I5d358413ecfcfcdb4066f1a3924b2a36e9049b3e
tapi/src/main/java/org/opendaylight/transportpce/tapi/topology/ConvertORTopoToTapiTopo.java
tapi/src/main/java/org/opendaylight/transportpce/tapi/topology/TapiTopologyImpl.java
tapi/src/test/java/org/opendaylight/transportpce/tapi/topology/ConvertORTopoObjectToTapiTooObjectTest.java