enhance behaviour when no peer matching filter
This commit is contained in:
parent
3d0f8580f2
commit
7f2f8b1da2
|
@ -199,6 +199,11 @@ sub manage_selection {
|
||||||
seconds => $mapped_value->{bgpPeerInUpdateElpasedTime}, as => $mapped_value->{bgpPeerRemoteAs},
|
seconds => $mapped_value->{bgpPeerInUpdateElpasedTime}, as => $mapped_value->{bgpPeerRemoteAs},
|
||||||
display => $instance };
|
display => $instance };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (scalar(keys %{$self->{peers}}) <= 0) {
|
||||||
|
$self->{output}->add_option_msg(short_msg => 'No peers detected, check your filter ? ');
|
||||||
|
$self->{output}->option_exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Reference in New Issue