summaryrefslogtreecommitdiffstats
path: root/holmes-actions/src
diff options
context:
space:
mode:
authorRama-Huawei <rama.subba.reddy.s@huawei.com>2019-04-16 12:19:33 +0530
committerRama-Huawei <rama.subba.reddy.s@huawei.com>2019-04-16 12:19:33 +0530
commit587fb47efbbee8ef3442323cec61cce046c67fbb (patch)
treed000f4a2134e1bb55c5f1abd4550648df1371a47 /holmes-actions/src
parentfee09d8fe35195974b82ad859c49be2627cf7394 (diff)
Update AAI Assistant Tools for CCVPN Extenstion
When there are no site-resource is configured then vnfid is null Issue-ID: HOLMES-194 Change-Id: I275ab60b20ca2ea0fe1ced9ce2b9ef0f99875c15 Signed-off-by: Rama-Huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'holmes-actions/src')
-rw-r--r--holmes-actions/src/main/java/org/onap/holmes/common/aai/AaiQuery4Ccvpn2.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/aai/AaiQuery4Ccvpn2.java b/holmes-actions/src/main/java/org/onap/holmes/common/aai/AaiQuery4Ccvpn2.java
index 9b13b8e..d025fea 100644
--- a/holmes-actions/src/main/java/org/onap/holmes/common/aai/AaiQuery4Ccvpn2.java
+++ b/holmes-actions/src/main/java/org/onap/holmes/common/aai/AaiQuery4Ccvpn2.java
@@ -96,6 +96,9 @@ public class AaiQuery4Ccvpn2 {
public JSONObject getSiteServiceInstance(String siteService) throws CorrelationException {
String vnfId = getSiteVNFId(siteService);
+ if (vnfId == null) {
+ return null;
+ }
JSONObject serviceInstanceInfo = getServiceInstanceByVnfId(vnfId);
String serviceInstancePath = serviceInstanceInfo.getString("related-link");
Response response = get(getHostAddr(), getPath(serviceInstancePath));