From 0d82295193356e29a27caded94961c412275c953 Mon Sep 17 00:00:00 2001 From: "ramu.n" Date: Wed, 15 Nov 2017 21:24:44 +0530 Subject: Fix VoLTE service delete issue In VoLTE use case underlay uses network-topology-operation with svc-action create & delete, during underlay create operation need to update MDSAL OPERATIONAL data store similar to network-topology-operation with activate. Change-Id: I312679244656b4bef514595d1ec724969d44d38f Issue-Id: SDNC-193 Signed-off-by: Ramu N --- .../main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'generic-resource-api/provider/src/main/java/org/onap') diff --git a/generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java b/generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java index 1e45ee79..63df654f 100644 --- a/generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java +++ b/generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java @@ -1226,7 +1226,8 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC if (input.getSdncRequestHeader() != null && input.getSdncRequestHeader().getSvcAction() != null) { // Only update operational tree on Activate - if (input.getSdncRequestHeader().getSvcAction().equals(SvcAction.Activate)) { + if (input.getSdncRequestHeader().getSvcAction().equals(SvcAction.Activate) + || input.getSdncRequestHeader().getSvcAction().equals(SvcAction.Create)) { log.info("Updating OPERATIONAL tree."); saveService(serviceBuilder.build(), false, LogicalDatastoreType.OPERATIONAL); } -- cgit 1.2.3-korg