[libvirt] [PATCHv2 0/4]add support for graphics to get a IPv6 address

Luyao Huang lhuang at redhat.com
Sat Feb 28 09:08:30 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1192318

We already support add a IPv6 address to graphics listen address
and xml like this:

    <graphics type='spice' port='5900' autoport='yes' listen='2001b8:ca2:2::1' keymap='en-us'>
      <listen type='address' address='2001b8:ca2:2::1'/>
    </graphics>

However we do not support get a IPv6 address for the network.

add some helpers and rework networkGetNetworkAddress to make it
can get a IPv6 address when we need.

Luyao Huang (4):
  util: introduce 2 new helpers for get interface IPv6 address
  conf: introduce new family attribute in graphics listen for chose IP
    family
  network: rework networkGetNetworkAddress to make it can get IPv6
    address
  qemu: fix a error coverd issue in 2 place

 docs/formatdomain.html.in                          | 10 ++-
 docs/schemas/domaincommon.rng                      |  8 ++
 src/conf/domain_conf.c                             | 20 +++++
 src/conf/domain_conf.h                             |  9 ++
 src/libvirt_private.syms                           |  1 +
 src/network/bridge_driver.c                        | 15 ++--
 src/network/bridge_driver.h                        |  6 +-
 src/qemu/qemu_command.c                            | 22 +++--
 src/util/virnetdev.c                               | 98 ++++++++++++++++++++++
 src/util/virnetdev.h                               |  4 +
 .../qemuxml2argv-graphics-listen-network-ipv6.xml  | 35 ++++++++
 .../qemuxml2argv-graphics-listen-network.xml       |  2 +-
 .../qemuxml2xmlout-graphics-listen-network2.xml    |  2 +-
 tests/qemuxml2xmltest.c                            |  1 +
 14 files changed, 209 insertions(+), 24 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-graphics-listen-network-ipv6.xml

-- 
1.8.3.1




More information about the libvir-list mailing list