]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: split setup of ipv4 and ipv6 top level chains
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 18 Mar 2019 16:49:32 +0000 (16:49 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 19 Mar 2019 10:01:53 +0000 (10:01 +0000)
commit686803a1a2e1e0641916b1c9e2c7e3910fe598d4
tree61342492637a7a5cfc40cb07c89a64f8a035e945
parent9f4e35dc73ec9e940aa61bc7c140c2b800218ef3
network: split setup of ipv4 and ipv6 top level chains

During startup libvirtd creates top level chains for both ipv4
and ipv6 protocols. If this fails for any reason then startup
of virtual networks is blocked.

The default virtual network, however, only requires use of ipv4
and some servers have ipv6 disabled so it is expected that ipv6
chain creation will fail. There could equally be servers with
no ipv4, only ipv6.

This patch thus makes error reporting a little more fine grained
so that it works more sensibly when either ipv4 or ipv6 is
disabled on the server. Only the protocols that are actually
used by the virtual network have errors reported.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/network/bridge_driver_linux.c
src/util/viriptables.c
src/util/viriptables.h