diff options
| author | Marian Tudosoiu <marian.tudosoiu@1and1.ro> | 2018-04-11 11:13:14 +0300 |
|---|---|---|
| committer | Marian Tudosoiu <marian.tudosoiu@1and1.ro> | 2018-04-11 11:13:14 +0300 |
| commit | f6e4c60702f810cc06449782f64c7e5a7e20abb2 (patch) | |
| tree | e2ae9f6a4394890060d7a20763656b61df64d46f /scripts/firewall | |
| parent | fc5e3b8bb61690619ee739f11cac54abb689d5f2 (diff) | |
| download | vyatta-cfg-firewall-f6e4c60702f810cc06449782f64c7e5a7e20abb2.tar.gz vyatta-cfg-firewall-f6e4c60702f810cc06449782f64c7e5a7e20abb2.zip | |
Task T35 - fixing prune_deleted_sets for inet6 family
Diffstat (limited to 'scripts/firewall')
| -rwxr-xr-x | scripts/firewall/vyatta-ipset.pl | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
