Don't call mau_i_duplex_admin_old() if the device doesn't implement
the table at all.
This commit is contained in:
@@ -169,7 +169,11 @@ sub mau_i_duplex_admin {
|
|||||||
# Older HP4000's don't implement ifMauDefaultType, but we can
|
# Older HP4000's don't implement ifMauDefaultType, but we can
|
||||||
# figure out from ifMauAutoNegCapAdvertised what we'd like.
|
# figure out from ifMauAutoNegCapAdvertised what we'd like.
|
||||||
if (!defined($mau_type_admin)) {
|
if (!defined($mau_type_admin)) {
|
||||||
|
if (defined($mau_index)) {
|
||||||
return mau_i_duplex_admin_old($mau,$mau_index,$mau_autostat);
|
return mau_i_duplex_admin_old($mau,$mau_index,$mau_autostat);
|
||||||
|
} else {
|
||||||
|
return undef;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my %i_duplex_admin;
|
my %i_duplex_admin;
|
||||||
|
|||||||
Reference in New Issue
Block a user