]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bridge_driver: Enable virMacMap iff dnsmasq is started
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Aug 2022 11:31:41 +0000 (13:31 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Aug 2022 15:35:22 +0000 (17:35 +0200)
commita4e1a82668f168c9e57d3d03e8c17f6264ac0638
tree5a5c8c920d809d1b9eafacb63aeea7f0546552fa
parent2efd0dd9c3873f963271a3eefbb11da1e16cb2ee
bridge_driver: Enable virMacMap iff dnsmasq is started

The virMacMap module is used only for libvirt_guests NSS module
as it records list of MAC addresses used by certain guest. But
the module itself is usable if and only if the network assigns IP
addresses (i.e. has dnsmasq running). If it's some other
authority that assigns IP addresses then we do not need the
virMacMap module at all.

For instance, a network with no <forward/> type and no DHCP set
won't create /var/lib/libvirt/dnsmasq/ dir which is what the
module expects to exist. But there's no need for the module to
even care about such network.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/348
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/network/bridge_driver.c