xen-org/xen-api-libs — pull request #147 by euanh (2013-06-18 13:39:15+00:00)
Title: CA-89974: Live migrate fails on IPv6-prefering hosts

Make HTTP server understand URLs containing literal IPv6 addresses.
A related commit to xen-api makes the client embed literal IPv6 addresses
in URLs correctly.

* Parse IPv6 literals wrapped in square brackets in URLs
* Wrap IPv6 literals in square brackets when creating URLs
* Copy 'Helpers.validate_ip_address' from xapi/helpers.ml in xen-api
to stdext/unixext.ml and rename it to 'domain_of_addr'; a separate
commit to xen-api will remove the original 'validate_ip_address'

Signed-off-by: Euan Harris