Closed sjtarik closed 7 years ago
@sjtarik Please post the output from the following command on your switch:
show lldp neighbors
I removed other regular lines. Last line breaks the logic since it does not have 5 tuples because of missing capability.
Device ID Local Intf Hold-time Capability Port ID 40:e3:d6:c9:95:2c Gi10/10 112 W 40e3.d6c9.952c 90b1.1c7d.2e69 Gi1/13 2878 90b1.1c7d.2e69
Okay, will fix...
@ktbyers @mirceaulinic in the long run if there is a plan refactoring with textfsm, I can help?
Yeah, I am not a fan of textfsm. It is incredibly hard to use/maintain.
Note, this isn't a textfsm issue versus the way we did it issue...
it is a having a large enough sample size issue to cover the possible outputs that Cisco IOS can generate.
Description of Issue/Question
get_lldp_neighbors failed if device line does not have capabilities. maybe we should implement the case in textfsm and handle it?
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
Setup
napalm-ios version
(Paste verbatim output from
pip freeze | grep napalm-ios
between quotes below)IOS version
(Paste verbatim output from
show version
between quotes below)Steps to Reproduce the Issue
Connect a security camera, dell server or any simple device that does not exchange capabilities. Then call get_lldp_neighbors()
Error Traceback
(Paste the complete traceback of the exception between quotes below)