summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--releases/1.9.0.yaml9
-rw-r--r--releases/1.9.1.yaml9
-rw-r--r--so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/consts/NssmfAdapterConsts.java6
-rw-r--r--so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/BaseNssmfManager.java5
-rw-r--r--so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/ExternalNssmfManager.java5
-rw-r--r--so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/external/ExternalAnNssmfManager.java4
-rwxr-xr-xversion.properties2
7 files changed, 33 insertions, 7 deletions
diff --git a/releases/1.9.0.yaml b/releases/1.9.0.yaml
new file mode 100644
index 0000000..4bc225a
--- /dev/null
+++ b/releases/1.9.0.yaml
@@ -0,0 +1,9 @@
+---
+distribution_type: 'container'
+container_release_tag: '1.9.0'
+project: 'so'
+log_dir: 'so-adapters-so-nssmf-adapter-maven-docker-stage-master/222/'
+ref: '3b31943b77fb698127cffeae5b3eac280be7b449'
+containers:
+ - name: 'so/so-nssmf-adapter'
+ version: '1.9.0-20210916T2051'
diff --git a/releases/1.9.1.yaml b/releases/1.9.1.yaml
new file mode 100644
index 0000000..ec9468a
--- /dev/null
+++ b/releases/1.9.1.yaml
@@ -0,0 +1,9 @@
+---
+distribution_type: 'container'
+container_release_tag: '1.9.1'
+project: 'so'
+log_dir: 'so-adapters-so-nssmf-adapter-maven-docker-stage-master/248/'
+ref: '711ca0e978e921d4753f5700378cef4f52d4a178'
+containers:
+ - name: 'so/so-nssmf-adapter'
+ version: '1.9.1-20211013T2051'
diff --git a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/consts/NssmfAdapterConsts.java b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/consts/NssmfAdapterConsts.java
index 98a5a19..48f50a5 100644
--- a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/consts/NssmfAdapterConsts.java
+++ b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/consts/NssmfAdapterConsts.java
@@ -88,6 +88,8 @@ public class NssmfAdapterConsts {
private final static String EXTERNAL_AN_MODIFY_URL =
"/api/rest/provMns/{apiVersion}/an/NSS/SliceProfiles/{SliceProfileId}";
+ private final static String EXTERNAL_CN_MODIFY_URL = "/api/rest/provMns/{apiVersion}/NSS/nssi/{nssiId}";
+
private final static String INTERNAL_MODIFY_URL = "/onap/so/infra/3gppservices/{apiVersion}/modify";
//
@@ -131,7 +133,7 @@ public class NssmfAdapterConsts {
urlInfoMap.put(generateKey(ExecutorType.EXTERNAL, NetworkType.CORE, ActionType.DEACTIVATE),
new NssmfUrlInfo(EXTERNAL_CN_DEACTIVATE_URL, HttpMethod.PUT));
urlInfoMap.put(generateKey(ExecutorType.INTERNAL, null, ActionType.DEACTIVATE),
- new NssmfUrlInfo(INTERNAL_DEACTIVATE_URL, HttpMethod.PUT));
+ new NssmfUrlInfo(INTERNAL_DEACTIVATE_URL, HttpMethod.POST));
urlInfoMap.put(generateKey(ExecutorType.EXTERNAL, NetworkType.ACCESS, ActionType.TERMINATE),
new NssmfUrlInfo(EXTERNAL_AN_TERMINATE_URL, HttpMethod.DELETE));
@@ -145,7 +147,7 @@ public class NssmfAdapterConsts {
urlInfoMap.put(generateKey(ExecutorType.EXTERNAL, NetworkType.ACCESS, ActionType.MODIFY),
new NssmfUrlInfo(EXTERNAL_AN_MODIFY_URL, HttpMethod.PUT));
urlInfoMap.put(generateKey(ExecutorType.EXTERNAL, NetworkType.CORE, ActionType.MODIFY),
- new NssmfUrlInfo(EXTERNAL_CN_ALLOCATE_URL, HttpMethod.PUT));
+ new NssmfUrlInfo(EXTERNAL_CN_MODIFY_URL, HttpMethod.PUT));
urlInfoMap.put(generateKey(ExecutorType.INTERNAL, null, ActionType.MODIFY),
new NssmfUrlInfo(INTERNAL_MODIFY_URL, HttpMethod.PUT));
diff --git a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/BaseNssmfManager.java b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/BaseNssmfManager.java
index 52da027..3b75d22 100644
--- a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/BaseNssmfManager.java
+++ b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/BaseNssmfManager.java
@@ -87,6 +87,11 @@ public abstract class BaseNssmfManager implements NssmfManager {
@Override
public RestResponse modifyNssi(NssmfAdapterNBIRequest modifyRequest) throws ApplicationException {
this.params.clear();
+ if(this.esrInfo.getNetworkType().equals(NetworkType.CORE))
+ {
+ //this.params.put("sliceProfileId", modifyRequest.getAllocateCnNssi().getSliceProfile().getSliceProfileId());
+ this.params.put("nssiId", modifyRequest.getAllocateCnNssi().getNssiId());
+ }
this.urlHandler();
String requestBody = wrapModifyReqBody(modifyRequest);
diff --git a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/ExternalNssmfManager.java b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/ExternalNssmfManager.java
index 2c51cef..b465230 100644
--- a/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/ExternalNssmfManager.java
+++ b/so-nssmf-adapter-application/src/main/java/org/onap/so/adapters/nssmf/manager/impl/ExternalNssmfManager.java
@@ -95,6 +95,8 @@ public abstract class ExternalNssmfManager extends BaseNssmfManager {
nssiInstance.setModelVersionId(serviceInfo.getServiceUuid());
nssiInstance.setServiceInstanceLocationId(serviceInfo.getPLMNIdList());
nssiInstance.setEnvironmentContext(esrInfo.getNetworkType().getNetworkType());
+ nssiInstance.setWorkloadContext(esrInfo.getNetworkType().getNetworkType().toUpperCase()); //Subnet Type
+ nssiInstance.setServiceFunction(serviceInfo.getResourceSharingLevel());
nssiInstance.setServiceRole("nssi");
restUtil.createServiceInstance(nssiInstance, serviceInfo);
@@ -120,7 +122,6 @@ public abstract class ExternalNssmfManager extends BaseNssmfManager {
JobStatusResponse jobStatusResponse = unMarshal(restResponse.getResponseContent(), JobStatusResponse.class);
ResponseDescriptor rspDesc = jobStatusResponse.getResponseDescriptor();
-
logger.info("status = {}", status);
rspDesc.setNssiId(status.getResourceInstanceID());
@@ -232,7 +233,7 @@ public abstract class ExternalNssmfManager extends BaseNssmfManager {
NssiResponse response = unMarshal(restResponse.getResponseContent(), NssiResponse.class);
ResourceOperationStatus status =
new ResourceOperationStatus(serviceInfo.getNsiId(), response.getJobId(), serviceInfo.getServiceUuid());
- status.setResourceInstanceID(response.getNssiId());
+ status.setResourceInstanceID(serviceInfo.getNssiId());
status.setOperType(actionType.toString());
status.setProgress("0");
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 e9eb14c..b9a96c5 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
@@ -120,7 +120,7 @@ public class ExternalAnNssmfManager extends ExternalNssmfManager {
public RestResponse modifyNssi(NssmfAdapterNBIRequest modifyRequest) throws ApplicationException {
NssiResponse resp = new NssiResponse();
- String nssiId = modifyRequest.getActDeActNssi().getNssiId();
+ String nssiId = modifyRequest.getAllocateAnNssi().getNssiId();
resp.setJobId(UUID.randomUUID().toString());
resp.setNssiId(nssiId);
@@ -183,6 +183,6 @@ public class ExternalAnNssmfManager extends ExternalNssmfManager {
@Override
protected SelectionType doQueryNSSISelectionCapability() {
- return SelectionType.NSSMF;
+ return SelectionType.NSMF;
}
}
diff --git a/version.properties b/version.properties
index 326a100..5588bd4 100755
--- a/version.properties
+++ b/version.properties
@@ -4,7 +4,7 @@
major=1
minor=9
-patch=0
+patch=1
base_version=${major}.${minor}.${patch}