Fix: Disconnection of netconf node 82/97882/5
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 13 Oct 2021 13:49:29 +0000 (15:49 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Thu, 14 Oct 2021 12:30:59 +0000 (14:30 +0200)
commit41ed7ed1ee8a388730ef8c6f44e052b45aa5d244
tree13e57209016f0112652c9dc62bf2e384a28ec46c
parent700eb0475db06f97244c382d598ab04b8d774f53
Fix: Disconnection of netconf node

- Add protection to check that a node exists in TransportPCE datastores
before removing it. Appeared when the node connection remained in a
transient state, and that the node had not been created in PortMapping
and the different topologies.
- Add a new isNodeExist method in PortMapping to test presence or not of
a node in the datastore.

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