]> xenbits.xensource.com Git - libvirt.git/commit
conf: add an attribute to turn on NAT for IPv6 virtual networks
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 8 Jun 2020 13:35:02 +0000 (14:35 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 15 Jun 2020 16:10:15 +0000 (17:10 +0100)
commit927acaedec7effbe67a154d8bfa0e67f7d08e6c7
treef8094ccaadeb9e522637f80b04817f9accd9a0e8
parent8774db431fc6764f99ebe00418ae77980557d8c8
conf: add an attribute to turn on NAT for IPv6 virtual networks

Historically IPv6 did not support NAT, so when IPv6 was added to
libvirt's virtual networks, when requesting <forward mode="nat"/>
libvirt will NOT apply NAT to IPv6 traffic, only IPv4 traffic.

This is an annoying historical design decision as it means we
cannot enable IPv6 automatically. We thus need to introduce a
new attribute

   <forward mode="nat">
     <nat ipv6="yes"/>
   </forward>

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/formatnetwork.html.in
docs/schemas/network.rng
src/conf/network_conf.c
src/conf/network_conf.h
tests/networkxml2xmlin/nat-network-forward-nat-ipv6.xml [new file with mode: 0644]
tests/networkxml2xmlout/nat-network-forward-nat-ipv6.xml [new file with mode: 0644]
tests/networkxml2xmltest.c