From f6e4c60702f810cc06449782f64c7e5a7e20abb2 Mon Sep 17 00:00:00 2001 From: Marian Tudosoiu Date: Wed, 11 Apr 2018 11:13:14 +0300 Subject: Task T35 - fixing prune_deleted_sets for inet6 family --- scripts/firewall/vyatta-ipset.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/firewall') diff --git a/scripts/firewall/vyatta-ipset.pl b/scripts/firewall/vyatta-ipset.pl index 0f7f731..e5b2fd1 100755 --- a/scripts/firewall/vyatta-ipset.pl +++ b/scripts/firewall/vyatta-ipset.pl @@ -350,6 +350,8 @@ sub prune_deleted_sets { # only try groups with no references if ($group->exists() && ($group->references() == 0)) { my $type = $group->get_type(); + my $family = $group->get_family(); + ($family eq 'inet') ? $cfg->setLevel("firewall group $type-group") : $cfg->setLevel("firewall group ipv6-$type-group"); $cfg->setLevel("firewall group $type-group"); next if ($cfg->isEffective($set)); # don't prune if still in config my $rc; -- cgit v1.2.3