Merge "Make ODL healthcheck IPv6 compatible"

This commit is contained in:
Zuul 2018-09-28 03:57:38 +00:00 committed by Gerrit Code Review
commit 51d3c17c8e
1 changed files with 5 additions and 0 deletions

View File

@ -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