Remove code deleting node from clli network 91/82891/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 2 Jul 2019 13:28:39 +0000 (15:28 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 2 Jul 2019 13:28:39 +0000 (15:28 +0200)
- it is not relevant to remove a clli-node from clli-topology.

Change-Id: Iec84b639041713c7e11f38031267c9a861110c19
JIRA: TRNSPRTPCE-115
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Co-authored-by: Christophe Betoule <christophe.betoule@orange.com>
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/service/NetworkModelServiceImpl.java

index fb633a008cb639d29f22cbba0fb4c56687e4a46e..0863538c347034caffe1a3f4101db42dd0f5ed9c 100644 (file)
@@ -177,13 +177,6 @@ public class NetworkModelServiceImpl implements NetworkModelService {
 
             NodeKey nodeIdKey = new NodeKey(new NodeId(nodeId));
 
-            LOG.info("deleting node in {}", NetworkUtils.CLLI_NETWORK_ID);
-            InstanceIdentifier<Node> iiClliNode = InstanceIdentifier.builder(Networks.class)
-                .child(Network.class, new NetworkKey(new NetworkId(NetworkUtils.CLLI_NETWORK_ID)))
-                .child(Node.class, nodeIdKey)
-                .build();
-            this.networkTransactionService.delete(LogicalDatastoreType.CONFIGURATION, iiClliNode);
-
             LOG.info("deleting node in {}", NetworkUtils.UNDERLAY_NETWORK_ID);
             InstanceIdentifier<Node> iiOpenRoadmNode = InstanceIdentifier.builder(Networks.class)
                 .child(Network.class, new NetworkKey(new NetworkId(NetworkUtils.UNDERLAY_NETWORK_ID)))