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