| line |
true |
false |
branch |
|
58
|
0 |
0 |
if (@_ == 1) { } |
|
60
|
0 |
0 |
unless ($uIfx =~ /^\d+$/) |
|
67
|
0 |
0 |
if (/^-?interface$/i or /^-?index$/i) |
|
68
|
0 |
0 |
if ($args{$_} =~ /^\d+$/) { } |
|
77
|
0 |
0 |
unless (defined $uIfx) |
|
82
|
0 |
0 |
unless (defined $rIf) |
|
89
|
0 |
0 |
if ($rIfx->[$_] == $uIfx) |
|
105
|
0 |
0 |
if (@_ == 1) { } |
|
110
|
0 |
0 |
if (/^-?interface$/i) { } |
|
|
0 |
0 |
elsif (/^-?index$/i) { } |
|
113
|
0 |
0 |
if ($args{$_} == 1) |
|
119
|
0 |
0 |
unless (exists $params{'uIf'}) |
|
125
|
0 |
0 |
unless (defined $rIf) |
|
147
|
0 |
0 |
if ($rIfNamePart =~ /^$uIfNamePart/i and $rIfNumPart eq $uIfNumPart) |
|
153
|
0 |
0 |
if (@matches == 1) { } |
|
|
0 |
0 |
elsif (@matches == 0) { } |
|
154
|
0 |
0 |
if ($params{'index'} == 0) { } |
|
177
|
0 |
0 |
if (@_ == 1) { } |
|
179
|
0 |
0 |
unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($params{'ifs'}))) |
|
188
|
0 |
0 |
if (/^-?interface(?:s)?$/i) |
|
189
|
0 |
0 |
unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($args{$_}))) |
|
203
|
0 |
0 |
if ($ifs == -1) { } |
|
216
|
0 |
0 |
unless (defined $ret{$IFKEYS[$oid]}) |
|
261
|
0 |
0 |
if ($_ == 5) { } |
|
|
0 |
0 |
elsif ($_ == 6 or $_ == 7) { } |
|
|
0 |
0 |
elsif ($_ == 9) { } |
|
267
|
0 |
0 |
$ret{$IFKEYS[$_]}[$idx] =~ /^0x/ ? : |
|
|
0 |
0 |
$ret{$IFKEYS[$_]}[$idx] =~ /^\0/ ? : |
|
272
|
0 |
0 |
exists $UpDownStatus{$ret{$IFKEYS[$_]}[$idx]} ? : |
|
276
|
0 |
0 |
if (exists $duplexIfs{$ret{$IFKEYS[0]}[$idx]}) { } |
|
282
|
0 |
0 |
exists $DuplexType{$duplexIfs{$ret{$IFKEYS[0]}[$idx]}} ? : |
|
315
|
0 |
0 |
if (@_ == 1) { } |
|
317
|
0 |
0 |
unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($params{'ifs'}))) |
|
326
|
0 |
0 |
if (/^-?interface(?:s)?$/i) { } |
|
|
0 |
0 |
elsif (/^-?metric(?:s)?$/i) { } |
|
327
|
0 |
0 |
unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($args{$_}))) |
|
339
|
0 |
0 |
if (ref $args{$_} eq 'ARRAY') { } |
|
342
|
0 |
0 |
if (exists $params{ucfirst lc $mets}) { } |
|
352
|
0 |
0 |
if (exists $params{ucfirst lc $args{$_}}) { } |
|
369
|
0 |
0 |
if ($ifs == -1) { } |
|
378
|
0 |
0 |
unless (defined $ret{'Index'}) |
|
384
|
0 |
0 |
if ($params{$IFMETRICUSERKEYS[0]}) |
|
389
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[0]}) |
|
398
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[1]}) |
|
406
|
0 |
0 |
if ($params{$IFMETRICUSERKEYS[1]}) |
|
411
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[2]}) |
|
420
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[3]}) |
|
428
|
0 |
0 |
if ($params{$IFMETRICUSERKEYS[2]}) |
|
433
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[4]}) |
|
442
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[5]}) |
|
450
|
0 |
0 |
if ($params{$IFMETRICUSERKEYS[3]}) |
|
455
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[6]}) |
|
464
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[7]}) |
|
472
|
0 |
0 |
if ($params{$IFMETRICUSERKEYS[4]}) |
|
477
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[8]}) |
|
486
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[9]}) |
|
494
|
0 |
0 |
if ($params{$IFMETRICUSERKEYS[5]}) |
|
499
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[10]}) |
|
508
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[11]}) |
|
516
|
0 |
0 |
if ($params{$IFMETRICUSERKEYS[6]}) |
|
521
|
0 |
0 |
unless (defined $ret{$IFMETRICKEYS[12]}) |
|
553
|
0 |
0 |
if (@_ != 1) |
|
556
|
0 |
0 |
if (/^-?polling$/i or /^-?interval$/i) { } |
|
|
0 |
0 |
elsif (/^-?recursive$/i) { } |
|
557
|
0 |
0 |
if ($args{$_} =~ /^\d+$/ and $args{$_} > 0) { } |
|
571
|
0 |
0 |
if (exists $params{'recur'} and ref $params{'recur'} eq 'Cisco::SNMP::Interface') { } |
|
575
|
0 |
0 |
unless (defined($prev = $self->interface_metrics(@_))) |
|
583
|
0 |
0 |
unless (defined($curr = $self->interface_metrics(@_))) |
|
594
|
0 |
0 |
if ($_ == 4 or $_ == 5) { } |
|
602
|
0 |
0 |
defined $curr->{$ifs}{$IFMETRICKEYS[$_]} ? : |
|
609
|
0 |
0 |
defined $curr->{$ifs}{$IFMETRICKEYS[$_]} ? : |
|
615
|
0 |
0 |
wantarray ? : |
|
631
|
0 |
0 |
if (@_ == 1) { } |
|
633
|
0 |
0 |
unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($params{'ifs'}))) |
|
642
|
0 |
0 |
if (/^-?interface(?:s)?$/i) { } |
|
|
0 |
0 |
elsif (/^-?operation$/i or /^-?command$/i) { } |
|
643
|
0 |
0 |
unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($args{$_}))) |
|
650
|
0 |
0 |
if (exists $op{uc $args{$_}}) { } |
|
661
|
0 |
0 |
unless (defined $params{'ifs'}) |
|
663
|
0 |
0 |
unless (defined $params{'ifs'}) |
|
671
|
0 |
0 |
if (defined $session->set_request(_ifOID() . '.7.' . $_, INTEGER(), $params{'oper'})) { } |
|
696
|
0 |
0 |
unless (defined $val) |
|
708
|
0 |
0 |
unless (defined $val) |
|
719
|
0 |
0 |
unless (defined $val) |
|
730
|
0 |
0 |
unless (defined $val) |
|
743
|
0 |
0 |
unless (defined $val) |
|
757
|
0 |
0 |
unless (defined $val) |