Add new method in PortMapping interface 27/97827/12
authorGilles Thouenon <gilles.thouenon@orange.com>
Fri, 1 Oct 2021 12:10:55 +0000 (14:10 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Thu, 9 Dec 2021 08:50:43 +0000 (09:50 +0100)
commit63ac411af040169c3f9908c57aff8d9e8aed2abf
tree51155d0ccf8aefc300ebc45a5658e637565711a5
parent41bcd9973fefe2dc01cbe1c246d31d6bdceba120
Add new method in PortMapping interface

- change the name of deleteMappingData method to deletePortMappingNode
to be more explicit about the deletion of the all port-mapping node when
disconnecting a node
- create a new deleteMapping method that remove a given mapping from the
mapping list for a given node. Such method is necessary when we want to
update a mapping removing one leaf (typically, supporting odu and otu
interface of xponder when we delete ODU4 or OTU4 services).

JIRA: TRNSPRTPCE-538
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I477b7a6ddbf3a97b65e12ec317271d45a3a83da3
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMapping.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingImpl.java
common/src/test/java/org/opendaylight/transportpce/common/mapping/PortMappingImplTest.java
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/service/NetworkModelServiceImpl.java