Closed jrschneider closed 4 years ago
On line 634, there is no protection against a failed regex match, which is ultimately causing the issue. Not sure if the output changed in recent versions of AOS8.
Could you please provide me the output of "show lldp remote-system" command on your system
Thanks
sh-lldp-remote-system-6860e.txt sh-lldp-remote-system-6900-t40.txt
I collected a 'show system' and a 'show lldp remote-system' from two different model lines, both running AOS 8.5. The original example script I posted breaks on both in the same fashion. The commands were collected using show system > sh-lldp-remote-system-6860e.txt
and show lldp remote-system >> sh-lldp-remote-system-6860e.txt
to try and preserve the spacing and output as best as possible. The files were downloaded from the switch and uploaded here without modification.
Thank you.
Thank for your file. I have found the root cause of issue.
I also check our napalm implementation and see it is outdated with napalm/base. It will take us some time to update the source code and fix issue.
Thank you.
@jrschneider The issue has been resolved. Could you check and update the ticket?
Issue is resolved.
Problem Description
get_lldp_neighbors() raises an AttributeError against AOS8:
Analysis
The following basic script reproduces the error every time:
The
get_lldp_neighbors_detail()
method works as expected.Runtime Information
Switch info: Alcatel-Lucent Enterprise OS6860E-P48 8.5.255.R02 GA, August 29, 2018.
Python 3.6.7 Ubuntu 18.04.2 LTS