Make ODL healthcheck IPv6 compatible

Add missing brackets around IPv6 address
in healthcheck curl URL for ODL.

Change-Id: I165a3a44fad12c36160d201541971cf0a395b38c
Closes-Bug: #1789350
(cherry picked from commit 2ed70a654b)
This commit is contained in:
Janki Chhatbar 2018-08-28 11:21:09 +05:30 committed by Janki Chhatbar
parent 242e6a9ca2
commit 85f3b5f3f8
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