diff options
Diffstat (limited to 'sdclient/discovery-service/src')
3 files changed, 20 insertions, 2 deletions
diff --git a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/AgentService.java b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/AgentService.java index a5e21e0..225eeaf 100644 --- a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/AgentService.java +++ b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/AgentService.java @@ -1,5 +1,5 @@ /** - * Copyright 2016-2017 ZTE, Inc. and others. + * Copyright 2016-2018 ZTE, Inc. and others. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -64,6 +64,8 @@ public class AgentService implements Serializable { @JsonProperty("Timeout") private String timeout; + @JsonProperty("tls_skip_verify") + private Boolean tlsSkipVerify=true; private String status = "passing"; @@ -115,6 +117,14 @@ public class AgentService implements Serializable { this.status = status; } + public Boolean getTlsSkipVerify() { + return tlsSkipVerify; + } + + public void setTlsSkipVerify(Boolean tlsSkipVerify) { + this.tlsSkipVerify = tlsSkipVerify; + } + } diff --git a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/Node.java b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/Node.java index 1a1d65d..c62484b 100644 --- a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/Node.java +++ b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/core/Node.java @@ -141,6 +141,14 @@ public class Node implements Serializable { this.checkTimeOut = checkTimeOut; } + public Boolean getTls_skip_verify() { + return tls_skip_verify; + } + + public void setTls_skip_verify(Boolean tls_skip_verify) { + this.tls_skip_verify = tls_skip_verify; + } + } diff --git a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapper.java b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapper.java index 031a723..c999b45 100644 --- a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapper.java +++ b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapper.java @@ -640,7 +640,7 @@ public class ConsulServiceWrapper { check.setInterval(node.getCheckInterval()); check.setHttp(node.getCheckUrl()); check.setTimeout(node.getCheckTimeOut()); - + check.setTlsSkipVerify(node.getTls_skip_verify()); checkMap.put("http", node.getCheckUrl()); checkMap.put("interval", node.getCheckInterval()); checkMap.put("timeout", node.getCheckTimeOut()); |