Add new method in PortMapping interface 74/98974/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Fri, 1 Oct 2021 12:10:55 +0000 (14:10 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 14 Dec 2021 08:47:34 +0000 (09:47 +0100)
commit093e288d23665f4ef126368d97cff6a189513b40
tree4c58a758f1d7c37555341c7c7c965e77df31e410
parent5c0647d99b14450ec96e25c3c3d085367b46ab81
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