pyATS Tutorial for Beginners | Getting started with Genie & pyATS
Вставка
- Опубліковано 1 лип 2024
- In this pyATS Tutorial for beginners I will install pyATS and perform a simple test to learn the OSPF topology of my lab network.
I also address pyATS version check fail error which I encountered when installing pyATS
version conflict Jinja2
I also provide an introduction to Python virtual environments, as it is highly recommended to create a virtual environment to install pyATS into.
How to install pyATS
pip install "pyats[full]"
How to check version of pyATS
pyats version check
How to create testbed file
genie create testbed interactive --output tesbed.yml
www.rogerperkin.co.uk/network...
www.rogerperkin.co.uk/network...
Chapters
00:00 Introduction
00:50 What is pyATS?
01:11 What is Genie?
01:30 How to install pyATS
01:45 Python Virtual Environment
06:45 How to check version of pyATS
08:42 Setup testbed file
13:45 running your first pyATS test - genie learn ospf
✅ Subscribe ua-cam.com/users/rogerperkin?...
Thank you very much. Excellent video.
Thank Your for sharing
Dear Roger, great video to start out with PyATS.
Do you know if its possible to structure a hosts/iventory.yaml file the exact same way as it needed to be structured for a testbed file to be used in PyATS.
Say you structured your hosts/inventory file the same as was the example testbed.yaml file from your website on this topic, would the hosts/inventory.yaml work with Ansible?
Thanks Roger for this video. Can you please let me know. In which pyats library, connect() is define. Because i need to create same as connect function with new parameters.
I don't quite understand your question? pyATS uses the testbed file to create a list of hosts which are what it uses to make the connection
please make video on pyATS xpresso dashboard
Thank you Roger for the Video. I was able to get it to work using the steps you mentioned but when I try to run the same on a switch with TACACS, it just isn't working. Do you know of any changes in the testbed.yml or any other file that needs to be done for a successful run on a switch/router using TACACS authentication? Please let me know. Thank you
It depends at what level you are dropped into when you login to the switch using TACACs? When you log into the switch manually do you drop into Level 15 or do you need to type enable? With any network automation start with the baby steps - do it manually then move to automation run it on multiple devices and then pick up the strays that don't confirm. Down the line you will have all your infrastructure in line! It's not a quick process, but when it's running well it's like magic!
@@RogerPerkin thank you very much! I think I will do more testing on the level of login to the switch.
On windows platform, I have VS Code & getting error while installing pyats.
ERROR: Could not find a version that satisfies the requirement pyats[full] (from versions: none)
ERROR: No matching distribution found for pyats[full]
The issue still persists