]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: require nftables rather than iptables for newer RHEL/Fedora
authorLaine Stump <laine@redhat.com>
Sat, 20 Apr 2024 03:25:34 +0000 (23:25 -0400)
committerLaine Stump <laine@redhat.com>
Thu, 23 May 2024 03:20:49 +0000 (23:20 -0400)
It will still be possible to install iptables and use the iptables
backend, but we'll be showing a greater preference for nftables, which
is the proper thing to be doing.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index fce312c8ab84dc40d00bef5fe59b599652754b7e..6fb223c74ac3c169facdd93ab6b3957808d5bc86 100644 (file)
@@ -592,7 +592,11 @@ Summary: Network driver plugin for the libvirtd daemon
 Requires: libvirt-daemon-common = %{version}-%{release}
 Requires: libvirt-libs = %{version}-%{release}
 Requires: dnsmasq >= 2.41
+    %if 0%{?rhel} >= 10 || 0%{?fedora} >= 41
+Requires: nftables
+    %else
 Requires: iptables
+    %endif
 
 %description daemon-driver-network
 The network driver plugin for the libvirtd daemon, providing