From cc6009334c69b0856dad1b95755ef560fbeab174 Mon Sep 17 00:00:00 2001 From: SagarS Date: Tue, 7 Jun 2022 15:26:45 +0100 Subject: [SO] CNF Updates Change-Id: I85ca8e675ca408d33ede87703d97c0ffd212f316 Signed-off-by: SagarS Issue-ID: SO-3905 --- .../src/main/java/org/onap/so/apihandlerinfra/MsoRequest.java | 3 ++- .../src/main/java/org/onap/so/apihandlerinfra/RequestHandlerUtils.java | 3 ++- .../src/main/java/org/onap/so/apihandlerinfra/vnfbeans/ModelType.java | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'mso-api-handlers') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/MsoRequest.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/MsoRequest.java index 811d88869e..f8ab2cb0b9 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/MsoRequest.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/MsoRequest.java @@ -716,7 +716,8 @@ public class MsoRequest { } else if (requestScope.equalsIgnoreCase(ModelType.vfModule.name())) { vnfType = serviceModelName + "/" + vnfModelName; sir.setVolumeGroupInstanceId(volumeGroupId); - } else if (requestScope.equalsIgnoreCase(ModelType.vnf.name())) + } else if (requestScope.equalsIgnoreCase(ModelType.vnf.name()) + || requestScope.equalsIgnoreCase(ModelType.cnf.name())) vnfType = serviceModelName + "/" + sir.getRequestDetails().getModelInfo().getModelCustomizationName(); return vnfType; diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/RequestHandlerUtils.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/RequestHandlerUtils.java index efa037d393..e0511f259e 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/RequestHandlerUtils.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/RequestHandlerUtils.java @@ -408,7 +408,8 @@ public class RequestHandlerUtils extends AbstractRestHandler { if (StringUtils.isNotBlank(instanceId)) { if (ModelType.service.name().equalsIgnoreCase(requestScope)) { currentActiveReq.setServiceInstanceId(instanceId); - } else if (ModelType.vnf.name().equalsIgnoreCase(requestScope)) { + } else if (ModelType.vnf.name().equalsIgnoreCase(requestScope) + || ModelType.cnf.name().equalsIgnoreCase(requestScope)) { currentActiveReq.setVnfId(instanceId); } else if (ModelType.vfModule.name().equalsIgnoreCase(requestScope)) { currentActiveReq.setVfModuleId(instanceId); diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/vnfbeans/ModelType.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/vnfbeans/ModelType.java index e24ecd4eac..723bdd558b 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/vnfbeans/ModelType.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/vnfbeans/ModelType.java @@ -24,5 +24,5 @@ package org.onap.so.apihandlerinfra.vnfbeans; * Enum for Status values returned by API Handler to Tail-F */ public enum ModelType { - service, vnf, vfModule, volumeGroup, network + service, vnf, vfModule, volumeGroup, network, cnf } -- cgit 1.2.3-korg