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:
parent
242e6a9ca2
commit
85f3b5f3f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue