problem with pyATS and gennie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2019 08:19 AM
I have successfully installed pyats ang genie, but when i try to run the command:
genie learn ospf --testbed-file ./testbed.yaml
it display the error below:
Argument should be a path to a pyATS testbed file, or a pyATS Testbed object not ./testbed.yaml
but i already have the testbed.yaml file defined. So not sure why is there an error.
attached is the testbed.yml (the attached is .txt becos i can't upload .yaml file)
did i miss out anything ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2019 08:28 AM
Hi there,
The documentation (albeit not for the module in question) states that your need to specify the full path to the testbed file (e not the single dot notation for the current working directory):
cheers,
Seb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2019 09:01 AM
I specified the full pathname, but still get the same error..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 05:16 AM
Did you get this figured out?
One thought is, are you editing an existing yaml file which has devices and topology in it? If you are the devices in the topology section need to also be in the device section. My recommend (as this is what I first did), remove the topology section and just have a device section. This will get you started with genie and you can "learn" the different functions on the device like bgp, interface, ospf ,etc.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 06:35 AM
Thanks for the reply. I managed to get it sorted out. Apparently, there are some issues (some leading space) with the testbed.yaml file.
I use the "pyats validate testbed " to validate the yaml file and got it fixed.
However, I use "gennie learn ospf -testbed-file testbed.yaml", it states that feature is not supported and there is no output file.
"gennie learn interface" does generate some output. I am using IOU, not sure if that is the issue, I will test it on NXOS and see if it works.
Rgds
Eng Wee
