summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-01-22 15:00:51 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-01-22 15:00:51 -0800
commit4835345064bcb76023508c23480ba2008cd7ab91 (patch)
treed7557c65b726f7c2c07e193e26f7d9ef3d58cc06 /lib
parent7895f33d97cc62b8040443ae2b006d9c446c62a8 (diff)
downloadvyatta-cfg-firewall-4835345064bcb76023508c23480ba2008cd7ab91.tar.gz
vyatta-cfg-firewall-4835345064bcb76023508c23480ba2008cd7ab91.zip
Fix 5248: Firewall config and show commands hang when showing and committing address groups.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/IpTables/IpSet.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Vyatta/IpTables/IpSet.pm b/lib/Vyatta/IpTables/IpSet.pm
index a0038c2..f0839b9 100755
--- a/lib/Vyatta/IpTables/IpSet.pm
+++ b/lib/Vyatta/IpTables/IpSet.pm
@@ -96,7 +96,7 @@ sub exists {
return 1 if defined $self->{_exists};
return 0 if ! defined $self->{_name};
- my $cmd = "ipset -L $self->{_name} > /dev/null &>2";
+ my $cmd = "ipset -n -L $self->{_name} > /dev/null &>2";
my $rc = $self->run_cmd($cmd);
if ($rc eq 0) {
$self->{_exists} = 1;
@@ -110,7 +110,7 @@ sub get_type {
return $self->{_type} if defined $self->{_type};
return if ! $self->exists();
- my @lines = `ipset -L $self->{_name}`;
+ my @lines = `ipset -n -L $self->{_name}`;
my $type;
foreach my $line (@lines) {
if ($line =~ /^Type:\s+(\w+)$/) {
@@ -161,7 +161,7 @@ sub get_members {
my @members = ();
return @members if ! $self->exists();
- my @lines = `ipset -L $self->{_name} -n -s`;
+ my @lines = `ipset -n -L $self->{_name} -s`;
foreach my $line (@lines) {
push @members, $line if $line =~ /^\d/;
}
@@ -195,7 +195,7 @@ sub references {
my ($self) = @_;
return 0 if ! $self->exists();
- my @lines = `ipset -L $self->{_name}`;
+ my @lines = `ipset -n -L $self->{_name}`;
foreach my $line (@lines) {
if ($line =~ /^References:\s+(\d+)$/) {
return $1;