ktbyers / netmiko_tools

Command line tools built on Netmiko to simplify information gathering
Apache License 2.0
93 stars 32 forks source link

Not able to running the fallowing. #36

Closed JustJordanT closed 5 years ago

JustJordanT commented 5 years ago

Looking for a fix for the following.

 netmiko-show --list-devices
Traceback (most recent call last):
  File "/home/ansible_host/netmiko_tools/netmiko_tools/netmiko-show", line 195, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/ansible_host/netmiko_tools/netmiko_tools/netmiko-show", line 102, in main
    display_inventory(my_devices)
  File "/usr/local/lib/python2.7/dist-packages/netmiko/utilities.py", line 97, in display_inventory
    inventory_devices.append((k, v['device_type']))
KeyError: u'device_type'
ktbyers commented 5 years ago

@y4rden What does your inventory file look (your .netmiko.yml file)? You can obfuscate passwords/other confidential information.

JustJordanT commented 5 years ago

I was having some issues with the version of Ubuntu 18.04. after moving to 16.04 issue not present.