aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/provider/src/main
diff options
context:
space:
mode:
authorramu.n <ramu.n@huawei.com>2017-11-15 21:24:44 +0530
committerramu.n <ramu.n@huawei.com>2017-11-15 21:24:44 +0530
commit0d82295193356e29a27caded94961c412275c953 (patch)
treece948a5a8a1545b00116863a9fee2dba12ac99ae /generic-resource-api/provider/src/main
parent4a858d878b4aaa746a27d1d7568922f853dc0d2d (diff)
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 <ramu.n@huawei.com>
Diffstat (limited to 'generic-resource-api/provider/src/main')
-rw-r--r--generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java3
1 files changed, 2 insertions, 1 deletions
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);
}