cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1148
Views
10
Helpful
4
Replies
Highlighted
Beginner

problem with pyATS and gennie

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 ?

 

 

4 REPLIES 4
Highlighted
VIP Advisor

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):

 

https://pubhub.devnetcloud.com/media/pyats-packages/docs/genietelemetry/usage.html#standard-arguments

 

cheers,

Seb.

Highlighted

I specified the full pathname, but still get the same error..

Highlighted
Beginner

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.

Highlighted
Beginner

Hi
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