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

get_lldp_neighbors fails when ChassisId is truncated #15

Open
rgilijamse opened this issue Apr 12, 2021 · 1 comment · May be fixed by #16
Open

get_lldp_neighbors fails when ChassisId is truncated #15

rgilijamse opened this issue Apr 12, 2021 · 1 comment · May be fixed by #16

Comments

@rgilijamse
Copy link

When neighbor devices have a very long Chassis ID, looking up this value in the MIB fails:

File "/home/rgilijamse/scripts/_venv/lib/python3.8/site-packages/napalm_procurve/procurve.py", line 423, in _lldp_detail_parser
    "{}.0.{}.1".format(key_mib_table[key], ifs[interface])
KeyError: 'ChassisId'

Easy to fix: add the correct MIB id to key_mib_table in _lldp_detail_parser (line 388)

"ChassisId": "lldpRemChassisId",
@rgilijamse
Copy link
Author

I can add a PR for this if you want, but it'll take me some time to set up an environment for that.

@rgilijamse rgilijamse linked a pull request Apr 13, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant