fix(bgp4): filter AS (#3040)

This commit is contained in:
Dermone 2021-08-11 17:51:02 +02:00 committed by GitHub
parent 240a573626
commit 0b7ec3f635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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