summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryogendrapal <yogendra@aarnanetworks.com>2022-03-09 14:06:01 +0530
committeryogendrapal <yogendra@aarnanetworks.com>2022-03-11 21:54:26 +0530
commit3a476ea12214dac11be661604b83633de13be8f9 (patch)
treec4059c200317f8c950ed32cbfc79e14079b604aa
parentc4c404f6274fda1079aa2bdfdbcd25cb3173a261 (diff)
Enabled so/so-nssmf-adapter to flow the activate/deactivate slice events to
external RAN NSSMF simulator (option-2). Issue-ID: SO-3870 Signed-off-by: yogendrapal <yogendra@aarnanetworks.com> Change-Id: If74370b4e30ff58a04c1ecdb7dc296efb4f085c7 Signed-off-by: yogendrapal <yogendra@aarnanetworks.com>
-rw-r--r--so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/external/ExternalAnNssmfManager.java22
1 files changed, 1 insertions, 21 deletions
diff --git a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/external/ExternalAnNssmfManager.java b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/external/ExternalAnNssmfManager.java
index b9a96c5..f1ef20c 100644
--- a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/external/ExternalAnNssmfManager.java
+++ b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/external/ExternalAnNssmfManager.java
@@ -3,6 +3,7 @@
* ONAP - SO
* ================================================================================
# Copyright (c) 2020, CMCC Technologies Co., Ltd.
+ # Contribution (c) 2022, Aarna Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
@@ -140,27 +141,6 @@ public class ExternalAnNssmfManager extends ExternalNssmfManager {
}
@Override
- public RestResponse activateNssi(NssmfAdapterNBIRequest nbiRequest, String snssai) throws ApplicationException {
- NssiResponse resp = new NssiResponse();
- String nssiId = nbiRequest.getActDeActNssi().getNssiId();
- resp.setJobId(UUID.randomUUID().toString());
- resp.setNssiId(nssiId);
-
- RestResponse returnRsp = new RestResponse();
-
- returnRsp.setStatus(202);
- returnRsp.setResponseContent(marshal(resp));
-
- ResourceOperationStatus status =
- new ResourceOperationStatus(serviceInfo.getNsiId(), resp.getJobId(), serviceInfo.getServiceUuid());
- status.setResourceInstanceID(nssiId);
- status.setOperType(actionType.toString());
-
- updateDbStatus(status, returnRsp.getStatus(), JobStatus.FINISHED, NssmfAdapterUtil.getStatusDesc(actionType));
- return returnRsp;
- }
-
- @Override
protected RestResponse doQueryJobStatus(ResourceOperationStatus status) throws ApplicationException {
ResponseDescriptor responseDescriptor = new ResponseDescriptor();
responseDescriptor.setStatus(JobStatus.FINISHED.toString());