Friday, December 11, 2020

Python CDP TextFSM

Hi

I dont know if this is the correct subreddit but I'm trying to figure out why my code for getting cdp neighbors is not working with TextFSM.

I'm using ntc-templates and there are two for cdp neighbors but my output doesnt change when using them. I tried it on http://textfsm.nornir.tech/ and there it seems to be working but not in my code, other templates are working fine. All im doing is using this code snippet

cdp = net_connect.send_command('show cdp nei', use_textfsm=True) print (cdp) 

Any ideas? Any help would be appreciated



No comments:

Post a Comment