diff --git a/healthcheck/opendaylight-api b/healthcheck/opendaylight-api index 0e23eedd8..68394f2ca 100755 --- a/healthcheck/opendaylight-api +++ b/healthcheck/opendaylight-api @@ -11,4 +11,9 @@ else bind_port=$(awk -F "= *" '/^org.osgi.service.http.port.secure/ {print $2}' $file) fi +# Make Healthcheck URL IPv6 compatible +if [[ $bind_host =~ .*:.* ]]; then + bind_host="[${bind_host}]" +fi + healthcheck_curl http://$bind_host:$bind_port/diagstatus