Links: Genie conversation starts here: 3:38 pyATS and Genie on DevNet: bit.ly/2IL0V5x Hank's Demo Repo for Genie CLI: bit.ly/2ZmTQOh NetDevOps Live! Video on pyATS and Genie: bit.ly/2VeDQ1z Hank's Personal UA-cam Channel: bit.ly/2VZOztZ pyATS and Genie on GitHub: bit.ly/2DtShEZ
If it were not for Mr Bombal, I'm sure I would still be pecking along terminal windows until the end of days... Thanks David for all the great content you create and host. Because of you i found my way into NetDevOps. Truly changed my career/life for the better!! Keep up the great work helping us network engineers step into the future of our roles.
Great video guys.... trying to follow along but I cannot install genie on my Ubuntu machine. Has anyone else had issues? I run sudo pip3 install genie and it installs OK. I then run any genie command and get the a long error about frozin importlib with the following line at the very end....: ImportError: Cannot import genie_yamls module. Any suggestions or known issue? Have posted on stack overflow and devnet as well.
Hi Anthony Kahwati, I saw you sent us an email at pyats-support-ext AT cisco.com; but here's the answer for all Genie needs to be run from a Python virtual environment. Please create a virtual environment. Eg: mkdir ~/pyats_genie cd ~/pyats_genie python3 -m venv . source bin/activate pip install genie Thanks!
I'm having issues with getting genie working. I followed the steps in the documentation had have pyats and genie installed in a python 3.6.9 virtual environment on Ubuntu 18.04. When I run the command: genie create testbed --output yaml/testbed.yaml --encode-password I get the error: pyats.topology.loader is a required dependency for this command. 'None' source cannot be found. If I create devices.yaml and place it in the same virtual environment directory and run the command: genie learn interface --testbed devices.yaml I get the error: Argument should be a path to a pyATS testbed file, or a pyATS Testbed object not devices.yaml Is there a way to make devices.yaml a testbed object? Has anyone else run into this issue?
Hello David, Hello Hank! I'd like to ask ... Practically is there a difference between pyats and genie when parsing a cmd or learning a module ? If i am not mistaken, no. Am i correct ? Best Regards guys!!!
@@cahangirismayilov9702 both pyats and genie have parse and learn. What is, practically, the difference between pyats parse, genie parse and pyats learn, genie learn I guess it is the same output, since genie's base is pyats
@@christostz03 yes it is the same, it just naming. In the beginning it used to be just pyATS, however Genie features started to stand out, so those terms are used interchangeably now.
Excellent information and very well exposed. I will start investigate this on my network environment. You both are responsible for my interest in learning python for network automation. Thanks to David and Hank.
Hey, Guys, It's an amazing video. But when I want to install PyATS in my Ubuntu (it has python 2.7 by default and I installed python3 on it ) it's not installed, what can I do to install it correctly. Thanks in advanced
In ubuntu, pip is for Python2, use pip3 instead - that's for python3. Though - pyATS/Genie at the moment still requires a python virtual environment, so do: python3 -m venv ~/pyats source ~/pyats/bin/activate pip install pyats genie
@@llellouche from the pyATS website: Requirements pyATS currently supports Python 3.4+ on Linux & Mac systems. Windows platforms are not yet supported. From developer.cisco.com/docs/pyats/#!requirements Platform pyATS & Genie is designed to run from a Linux (or Linux-like*) environment. Here are some example platforms you can install on. Any flavor of Linux, eg: Ubuntu, CentOS, Fedora, etc. macOS (or formerly, Mac OSX) Windows Subsystem for Linux Docker containers The confusing one is: Windows Subsystem for Linux . Does that mean it will work on Windows?
I have been following the last couple videos about Genie CLI and have what I believe is a good testbed file, it logs in but doesn't execute any of the learn args I ask for, ospf and interfaces. When it returns it says failed to connect but when I look at the output it has logged into the device and just sits there, so I am not sure if my device type or os is wrong but it follows your testbed you show in the video. I am using telnet on one of my test devices and ssh with another and each do the same thing. Maybe it's not recognizing the prompt so it can move on is the only idea I have. Any one else seeing this behavior? Love the videos and content I just am stuck at the moment and wanting to really harness the power of automation. Take care
Hi Mike; Genie lead/developer here; Most likely your device prompt is not matching the one you have in your yaml file. The device name in the yaml and the prompt must be the same; nx-osv-1# devices: nx-osv-1: Then it will work You can send us an email at pyats-support-ext AT cisco.com for better support!
@@vardd0505 Spoke too soon, now I am getting an error back on the interface learn, it is a physical Cat9516 and I have it set for iosxe. version 16.9.3 on the 9500. OSPF pulled just fine. Just happy I was able to access, the rest I know will be addressed. Figured I was doing something wrong. Thank you for your assistance!!
@@mikewhitney7345 For the interface issue; can you send us the device output + exception file to pyats-support-ext AT cisco.com we will address and release a new package. Glad everything else worked!
It's been much time seeing any good training from u. Now seems focus to be a motivational speaker /ccna trainer or sponsoring interviews only. Please understand that ur student needs a thorough training with u and these discussions on technology are not much help. Plz only u learn from these so called gurus and then prepare some good material for ur students, that we can understand. We respect u a lot as teacher and waiting for a good training on latest technologies.
Firstly - none of my videos are sponsored. It takes me a lot of time and costs me money to make these types of videos. What type of training are you missing me creating? These videos with Hank Preston are cutting edge and provide a lot of information about the latest technology trends. I cannot be an expert in everything - hence me talking to people in the industry. They share their expertise with all of us. I do have many courses on Udemy that cover a lot of technologies in depth. Not sure which type of content you are looking for? I have over 800 videos on my UA-cam channel that cover a lot of technologies. A lot of people really enjoy the motivational videos and there is a very large audience for CCNA content. I cannot be everything to everyone, but I do try to cover a large number of topics. Not sure what you feel is missing?
Anurag Tyagi to be completely fair your comment is selfish and so wrong he always put on good content, it doesn't suits you maybe no biggie just don't watch but to try and minimize the value of cutting edge technology is just wrong. So you had specific content you want just look for it without trying to put people down
Links:
Genie conversation starts here: 3:38
pyATS and Genie on DevNet: bit.ly/2IL0V5x
Hank's Demo Repo for Genie CLI: bit.ly/2ZmTQOh
NetDevOps Live! Video on pyATS and Genie: bit.ly/2VeDQ1z
Hank's Personal UA-cam Channel: bit.ly/2VZOztZ
pyATS and Genie on GitHub: bit.ly/2DtShEZ
I'd like to have one pls!
If it were not for Mr Bombal, I'm sure I would still be pecking along terminal windows until the end of days... Thanks David for all the great content you create and host. Because of you i found my way into NetDevOps. Truly changed my career/life for the better!! Keep up the great work helping us network engineers step into the future of our roles.
I still don’t see how we can test before the code gets into prod...? I see in XPRESSO the concept of LaaS but no examples of how to use it..
Great video guys.... trying to follow along but I cannot install genie on my Ubuntu machine. Has anyone else had issues?
I run sudo pip3 install genie and it installs OK. I then run any genie command and get the a long error about frozin importlib with the following line at the very end....:
ImportError: Cannot import genie_yamls module.
Any suggestions or known issue? Have posted on stack overflow and devnet as well.
Hi Anthony Kahwati,
I saw you sent us an email at pyats-support-ext AT cisco.com; but here's the answer for all
Genie needs to be run from a Python virtual environment. Please create a virtual environment. Eg:
mkdir ~/pyats_genie
cd ~/pyats_genie
python3 -m venv .
source bin/activate
pip install genie
Thanks!
Thank you. And the solution worked perfectly.
14:00 "DON'T TOUCH ME" ...the irony.
Looking forward to DevNet at Cisco Live!
I'm having issues with getting genie working. I followed the steps in the documentation had have pyats and genie installed in a python 3.6.9 virtual environment on Ubuntu 18.04. When I run the command: genie create testbed --output yaml/testbed.yaml --encode-password I get the error: pyats.topology.loader is a required dependency for this command. 'None' source cannot be found. If I create devices.yaml and place it in the same virtual environment directory and run the command: genie learn interface --testbed devices.yaml I get the error: Argument should be a path to a pyATS testbed file, or a pyATS Testbed object not devices.yaml Is there a way to make devices.yaml a testbed object? Has anyone else run into this issue?
does it support other vendor network devices?
Can I have one of the #codelord sticker
Glad it wasnt black hole null dev🤔
I want the sticker you and Hank Preston have been amazing talents to the networking community God will continue to bless you guys.
like it thanks.. going to try it..
Hello David, Hello Hank!
I'd like to ask ...
Practically is there a difference between
pyats and genie when parsing a cmd or learning a module ?
If i am not mistaken, no.
Am i correct ?
Best Regards guys!!!
What do you mean by parsing a cmd?
@@cahangirismayilov9702 both pyats and genie have parse and learn.
What is, practically, the difference between pyats parse, genie parse and pyats learn, genie learn
I guess it is the same output, since genie's base is pyats
@@christostz03 yes it is the same, it just naming. In the beginning it used to be just pyATS, however Genie features started to stand out, so those terms are used interchangeably now.
Excellent information and very well exposed. I will start investigate this on my network environment.
You both are responsible for my interest in learning python for network automation.
Thanks to David and Hank.
genie still not available for windows. Its a bummer.
Thanks to Cisco Team ❤️❤️❤️ and you too David.❤️❤️❤️
Thank you very much. Mr.David. waiting next weekend.
This is very exciting. I have to learn Python ( code lord, you are a genius) #Geniecisco
Its always brain soothing to watch your videos. Thanks you always. And I need the stickers too :)
Chris Pratt or Dan Crenshaw?
Hey, Guys, It's an amazing video.
But when I want to install PyATS in my Ubuntu (it has python 2.7 by default and I installed python3 on it ) it's not installed, what can I do to install it correctly.
Thanks in advanced
In ubuntu, pip is for Python2, use pip3 instead - that's for python3. Though - pyATS/Genie at the moment still requires a python virtual environment, so do:
python3 -m venv ~/pyats
source ~/pyats/bin/activate
pip install pyats genie
@@SimingYuan Thanks, It's helped me and it works properly.
many thanks to all of you.
Send me one that code lord sticker 😁
I would love a code-lord sticker too!
Sticker Requested!!!!
Thank David. I feel so exited on this.
Thank you both.
CODE LORD!!!! :-)
Good stuff code lord!
I want one, please!
I want one sticker!
Will pyATS/Genie get ported to Windows?
Dave Johnson I think it can be used regardless of the OS just pip install pyats genie and you are good to go
@@llellouche from the pyATS website:
Requirements
pyATS currently supports Python 3.4+ on Linux & Mac systems. Windows platforms are not yet supported.
From developer.cisco.com/docs/pyats/#!requirements
Platform
pyATS & Genie is designed to run from a Linux (or Linux-like*) environment. Here are some example platforms you can install on.
Any flavor of Linux, eg: Ubuntu, CentOS, Fedora, etc.
macOS (or formerly, Mac OSX)
Windows Subsystem for Linux
Docker containers
The confusing one is: Windows Subsystem for Linux
. Does that mean it will work on Windows?
@Abraham Avila Garcia Exactly, just run with WSL and it will work fine.
@@davejohnson392 WSL is the way to go!
I have been following the last couple videos about Genie CLI and have what I believe is a good testbed file, it logs in but doesn't execute any of the learn args I ask for, ospf and interfaces. When it returns it says failed to connect but when I look at the output it has logged into the device and just sits there, so I am not sure if my device type or os is wrong but it follows your testbed you show in the video. I am using telnet on one of my test devices and ssh with another and each do the same thing. Maybe it's not recognizing the prompt so it can move on is the only idea I have.
Any one else seeing this behavior?
Love the videos and content I just am stuck at the moment and wanting to really harness the power of automation. Take care
Hi Mike;
Genie lead/developer here; Most likely your device prompt is not matching the one you have in your yaml file. The device name in the yaml and the prompt must be the same;
nx-osv-1#
devices:
nx-osv-1:
Then it will work
You can send us an email at pyats-support-ext AT cisco.com for better support!
@@vardd0505 Case sensitivity got me, that is a key piece that I missed I guess. Thank you so much, it is running now.
@@mikewhitney7345 Perfect!
@@vardd0505 Spoke too soon, now I am getting an error back on the interface learn, it is a physical Cat9516 and I have it set for iosxe. version 16.9.3 on the 9500. OSPF pulled just fine. Just happy I was able to access, the rest I know will be addressed. Figured I was doing something wrong. Thank you for your assistance!!
@@mikewhitney7345 For the interface issue; can you send us the device output + exception file to pyats-support-ext AT cisco.com we will address and release a new package.
Glad everything else worked!
I WANT A STICK TOO !
lol.. I'll ask Hank if he can make stickers available!
@@davidbombal hahaha
I want one sticker!
It's been much time seeing any good training from u. Now seems focus to be a motivational speaker /ccna trainer or sponsoring interviews only.
Please understand that ur student needs a thorough training with u and these discussions on technology are not much help. Plz only u learn from these so called gurus and then prepare some good material for ur students, that we can understand. We respect u a lot as teacher and waiting for a good training on latest technologies.
Firstly - none of my videos are sponsored. It takes me a lot of time and costs me money to make these types of videos. What type of training are you missing me creating? These videos with Hank Preston are cutting edge and provide a lot of information about the latest technology trends. I cannot be an expert in everything - hence me talking to people in the industry. They share their expertise with all of us. I do have many courses on Udemy that cover a lot of technologies in depth. Not sure which type of content you are looking for? I have over 800 videos on my UA-cam channel that cover a lot of technologies. A lot of people really enjoy the motivational videos and there is a very large audience for CCNA content. I cannot be everything to everyone, but I do try to cover a large number of topics. Not sure what you feel is missing?
Anurag Tyagi to be completely fair your comment is selfish and so wrong he always put on good content, it doesn't suits you maybe no biggie just don't watch but to try and minimize the value of cutting edge technology is just wrong. So you had specific content you want just look for it without trying to put people down