From 72e5dc6c0b8fef503893795d17d00d16289bc195 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Mon, 27 Oct 2014 17:39:37 +0100 Subject: [PATCH] Refs #5576 --- network/cisco/common/mode/memory.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/network/cisco/common/mode/memory.pm b/network/cisco/common/mode/memory.pm index 21c676922..93747657f 100644 --- a/network/cisco/common/mode/memory.pm +++ b/network/cisco/common/mode/memory.pm @@ -83,6 +83,11 @@ sub check_table_memory { my $memory_free = $self->{results}->{$options{entry}}->{$options{poolFree} . '.' . $instance}; next if ($memory_name eq ''); + if (defined($self->{option_results}->{filter_pool}) && $self->{option_results}->{filter_pool} ne '' && + $memory_name !~ /$self->{option_results}->{filter_pool}/) { + $self->{output}->output_add(long_msg => "Skipping pool '" . $memory_name . "'."); + next; + } $checked = 1;