]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: escape ipv6 for rbd network disk hosts
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 25 Jan 2013 02:45:31 +0000 (18:45 -0800)
committerOsier Yang <jyang@redhat.com>
Fri, 25 Jan 2013 03:48:24 +0000 (11:48 +0800)
commitc1509ab47edf61e9f20d11922526b9fca518d238
tree9660bf1911f777b58686987bc81672fcaad35d4d
parent339bdd99a17eb1420cc5cadf27c36a9637d86f10
qemu: escape ipv6 for rbd network disk hosts

Hosts for rbd are ceph monitor daemons. These have fixed IP addresses,
so they are often referenced by IP rather than hostname for
convenience, or to avoid relying on DNS. Using IPv4 addresses as the
host name works already, but IPv6 addresses require rbd-specific
escaping because the colon is used as an option separator in the
string passed to qemu.

Escape these colons, and enclose the IPv6 address in square brackets
so it is distinguished from the port, which is currently mandatory.

Acked-by: Osier Yang <jyang@redhat.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
docs/schemas/domaincommon.rng
src/qemu/qemu_command.c
tests/qemuargv2xmltest.c
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-ipv6.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-ipv6.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c