Genie Config Python Script Failing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020 10:59 PM
Hey All!
First time Network Developer here. I've had some great fun with pyATS up until today where I keep getting issues trying to make a configuration change to a router on the DevNet sandbox. Here is what I'm trying to do:
1. Make a connection to the csr1000v router thats in the alwayson sandbox on devote
2. Create a new Loopback interface
I can make a connection successfully to the csr100v then the following line of code fails:
KeyError: <Device csr1000v-1 at 0x107b5be80>
- Labels:
-
pyATS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020 11:13 PM
Hi there,
What is the output of:
print(testbed.devices.keys())
...placed just before the statement which is causing the error.
It looks like the csr1000v has a different key to what you are expecting.
cheers,
Seb.
