From: Fabian Grünbichler Date: Wed, 10 Jul 2019 09:59:20 +0000 (+0200) Subject: ebtables: treat chain deletion as change X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=defdf28e9984cf2b19b50ea9f6a263bd5a365e43 ebtables: treat chain deletion as change since it is one. otherwise, 'pve-firewall compile' will print false information as long as the deletion has not been applied yet. Signed-off-by: Fabian Grünbichler --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 3b67186..41f48d6 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -4033,8 +4033,8 @@ sub get_ebtables_cmdlist { foreach my $chain (sort keys %$statushash) { my $stat = $statushash->{$chain}; - next if ($stat->{action} eq 'delete'); $changes = 1 if ($stat->{action} !~ 'ignore|exists'); + next if ($stat->{action} eq 'delete'); foreach my $cmd (@{$statushash->{$chain}->{'rules'}}) { if ($chain eq 'FORWARD' && $cmd eq $append_pve_to_forward) {