Commit 27dd2aa3 authored by Justin Santa Barbara's avatar Justin Santa Barbara

Support IPv6 access address for Openstack

We still prefer the IPv4 address, but if there is an IPv6 address and no IPv4 address, use IPv6.
parent d8b04866
......@@ -19,6 +19,9 @@ func SSHAddress(csp gophercloud.CloudServersProvider, port int) func(multistep.S
if s.AccessIPv4 != "" {
return fmt.Sprintf("%s:%d", s.AccessIPv4, port), nil
}
if s.AccessIPv6 != "" {
return fmt.Sprintf("[%s]:%d", s.AccessIPv6, port), nil
}
serverState, err := csp.ServerById(s.Id)
if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment