+ fix mode refactoring airespace
This commit is contained in:
parent
6485d681da
commit
710fbf9789
|
@ -82,7 +82,7 @@ sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{ap} = {};
|
$self->{ap} = {};
|
||||||
$self->{results} = $self->{snmp}->get_multiple_table(oids => [ { oid => $oid_bsnAPName },
|
$self->{results} = $options{snmp}->get_multiple_table(oids => [ { oid => $oid_bsnAPName },
|
||||||
{ oid => $oid_bsnAPIfInterferencePower },
|
{ oid => $oid_bsnAPIfInterferencePower },
|
||||||
{ oid => $oid_bsnAPIfInterferenceUtilization },
|
{ oid => $oid_bsnAPIfInterferenceUtilization },
|
||||||
],
|
],
|
||||||
|
|
|
@ -140,7 +140,7 @@ sub run_global {
|
||||||
my $obj = $_->{obj};
|
my $obj = $_->{obj};
|
||||||
|
|
||||||
next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' &&
|
next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' &&
|
||||||
$_->{name} !~ /$self->{option_results}->{filter_counters}/);
|
$_->{label} !~ /$self->{option_results}->{filter_counters}/);
|
||||||
|
|
||||||
$obj->set(instance => $options{config}->{name});
|
$obj->set(instance => $options{config}->{name});
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ sub run_instances {
|
||||||
my $obj = $_->{obj};
|
my $obj = $_->{obj};
|
||||||
|
|
||||||
next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' &&
|
next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' &&
|
||||||
$_->{name} !~ /$self->{option_results}->{filter_counters}/);
|
$_->{label} !~ /$self->{option_results}->{filter_counters}/);
|
||||||
|
|
||||||
$obj->set(instance => $id);
|
$obj->set(instance => $id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue