aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLBMS/apis
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/vLBMS/apis')
-rw-r--r--vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/health/read/ElementStateCustomizer.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/health/read/ElementStateCustomizer.java b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/health/read/ElementStateCustomizer.java
index 15d0c22a..b83ccef6 100644
--- a/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/health/read/ElementStateCustomizer.java
+++ b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/health/read/ElementStateCustomizer.java
@@ -168,9 +168,12 @@ public final class ElementStateCustomizer implements InitializingReaderCustomize
// check all the vDNS instances
Map<String, VdnsInstance> activeVdnsInstances = dnsInstanceManager.getDnsInstancesAsMap();
Iterator<String> iter = activeVdnsInstances.keySet().iterator();
- while(iter.hasNext()){
- if(!getRemoteVnfcHealthStatus(activeVdnsInstances.get(iter.next()).getOamIpAddr())) {
- healthStatus = "unhealthy";
+ while(iter.hasNext()) {
+ VdnsInstance vdns = activeVdnsInstances.get(iter.next());
+ if(vdns.isEnabled()) {
+ if(!getRemoteVnfcHealthStatus(vdns.getOamIpAddr())) {
+ healthStatus = "unhealthy";
+ }
}
}
}