From cab1094136e7ee91d463a06df3fe9f0d00c6798b Mon Sep 17 00:00:00 2001 From: Dermone Date: Wed, 11 Aug 2021 17:51:02 +0200 Subject: [PATCH] fix(bgp4): filter AS (#3040) --- centreon-plugins/apps/protocols/bgp/4/mode/bgppeerstate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/protocols/bgp/4/mode/bgppeerstate.pm b/centreon-plugins/apps/protocols/bgp/4/mode/bgppeerstate.pm index 151eb8878..9632165c2 100644 --- a/centreon-plugins/apps/protocols/bgp/4/mode/bgppeerstate.pm +++ b/centreon-plugins/apps/protocols/bgp/4/mode/bgppeerstate.pm @@ -162,7 +162,7 @@ sub manage_selection { next; } if (defined($self->{option_results}->{filter_as}) && $self->{option_results}->{filter_as} ne '' && - $instance !~ /$self->{option_results}->{filter_as}/) { + $mapped_value->{bgpPeerRemoteAs} !~ /$self->{option_results}->{filter_as}/) { $self->{output}->output_add( long_msg => "skipping AS '" . $mapped_value->{bgpPeerRemoteAs} . "': no matching filter.", debug => 1