Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lldp doesn't check for invalid ifsubtype & ifid #520

Open
inphobia opened this issue Mar 14, 2024 · 0 comments
Open

lldp doesn't check for invalid ifsubtype & ifid #520

inphobia opened this issue Mar 14, 2024 · 0 comments

Comments

@inphobia
Copy link
Member

Expected Behavior

Current Behavior

only seen on cisco fabric interconnects, fi 6332 running "Version 5.0(3)N2(4.23d)"

Use of uninitialized value $proto in numeric eq (==) at /home/netdisco/perl5/lib/perl5/SNMP/Info/LLDP.pm line 450.
Use of uninitialized value $proto in numeric eq (==) at /home/netdisco/perl5/lib/perl5/SNMP/Info/LLDP.pm line 455.
Use of uninitialized value $proto in numeric eq (==) at /home/netdisco/perl5/lib/perl5/SNMP/Info/LLDP.pm line 461.

reason:

invalid response returned for lldpRemManAddrIfSubtype & lldpRemManAddrIfId. 0 is not a valid value for these enumerations.

LLDP-MIB::lldpRemManAddrIfSubtype.83886080 = INTEGER: 0
LLDP-MIB::lldpRemManAddrIfSubtype.83890176 = INTEGER: ifIndex(2)
LLDP-MIB::lldpRemManAddrIfSubtype.83894272 = INTEGER: ifIndex(2)

LLDP-MIB::lldpRemManAddrIfId.83886080 = INTEGER: 0
LLDP-MIB::lldpRemManAddrIfId.83890176 = INTEGER: 5
LLDP-MIB::lldpRemManAddrIfId.83894272 = INTEGER: 5

Possible Solution

either add checks in _lldp_addr_index

or perhaps a cleaner solution, change lldp_rman_addr to a sub function that checks for correct values & return undef otherwise?

'lldp_rman_addr' => 'lldpRemManAddrIfSubtype',

Your Device

  • Vendor: cisco
  • Device Model: cevChassisUCSFI6332
  • Operating System Version: 5.0(3)N2(4.23d)

Your Environment

  • SNMP::Info version used: 3.970001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant