mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
fix(bgp4): filter AS (#3040)
This commit is contained in:
parent
240a573626
commit
0b7ec3f635
@ -162,7 +162,7 @@ sub manage_selection {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if (defined($self->{option_results}->{filter_as}) && $self->{option_results}->{filter_as} ne '' &&
|
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(
|
$self->{output}->output_add(
|
||||||
long_msg => "skipping AS '" . $mapped_value->{bgpPeerRemoteAs} . "': no matching filter.",
|
long_msg => "skipping AS '" . $mapped_value->{bgpPeerRemoteAs} . "': no matching filter.",
|
||||||
debug => 1
|
debug => 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user