aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/provider
diff options
context:
space:
mode:
authorshashikanth.vh <shashikanth.vh@huawei.com>2018-08-27 16:41:22 +0530
committerShashikanth VH <shashikanth.vh@huawei.com>2018-08-27 12:57:52 +0000
commit78a6948602fec40c00644567433ae2d73250c67c (patch)
tree9ca93ffe9624e2d52f49bc5a8d788634087a2b62 /generic-resource-api/provider
parent28b1d88103e19502d92bf6dd86a5e877d80e112c (diff)
Fixed vnfTopoOperation vnf-id return in response
Fixed issue vnfTopologyOperation, vnf-id not returning in response when vnf-id is not provided as part of input Change-Id: Iaa3b1387a45c60c27e3fdf1120e127648323e352 Issue-ID: SDNC-434 Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'generic-resource-api/provider')
-rw-r--r--generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java3
1 files changed, 3 insertions, 0 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 8609b600..d29e674d 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
@@ -869,6 +869,9 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
responseObject.setMessage(respProps.getProperty(ERROR_MESSAGE_PARAM));
responseObject.setStatusCode(respProps.getProperty(ERROR_CODE_PARAM));
ackFinal = respProps.getProperty(ACK_FINAL_PARAM, "Y");
+ if (vnfId == null) {
+ vnfId = respProps.getProperty("vnfId");
+ }
serviceObjectPath = respProps.getProperty(SERVICE_OBJECT_PATH_PARAM);
vnfObjectPath = respProps.getProperty(VNF_OBJECT_PATH_PARAM);
}